问题描述
我准备了一些带有外部资源的小代码 http://jsfiddle.net/VW9uR/到Google Place API,但资源不起作用.
来源是:http://maps.google.com/maps/api/js?sensor=false&libraries=places
如何添加正确的资源?
I prepare some small code http://jsfiddle.net/VW9uR/ with External Resource to Google Place API, but the resource doesn't work.
The source is: http://maps.google.com/maps/api/js?sensor=false&libraries=places
How to add correct resource?
推荐答案
jsfiddle需要文件扩展名来确定应加载的文件类型.在没有可用文件扩展名的地方,将扩展名添加到QUERY_STRING中,例如:
jsfiddle needs a file-extension to determine which type of file should be loaded. Where no file-extension is available add the extension to the QUERY_STRING, e.g.:
http://maps.google.com/maps/api/js?sensor=false&libraries=places&.js
演示: http://jsfiddle.net/doktormolle/y939C/
文档: http://doc.jsfiddle.net/basic/introduction. html#external-resources
这篇关于jsFiddle无法使用Google Place API这样的外部资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!