嗨,我想创建一个API混搭,从谷歌地图和flikr API拉动,但不断收到此错误在$调试未在此行中定义..
$(document).ready(function(){
//Connects to the Flickr API and reads the results of the query into a JSON array. This query uses the 'flickr.photos.search' method to search for photos with the tag 'crafts'. It passes the resultant JSON array to the 'displayImages3' function below.
$.getJSON("https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=df0277b8fff85c5ae122dc218d10e80e&tags=crafts&safe_search=1&has_geo=1&extras=geo&format=json&nojsoncallback=1&auth_token=72157644134169448-3a5eafa7a9912070&api_sig=230ed5707e01cfe061939756fe6107d4", displayImages3);
它提出了一个愚蠢的问题,但我如何定义这个?
你加载jQuery库?这是JS代码中'$'的常用来源。 –
您是否在代码中添加了jQuery库? –
对不起,是的,它是连接好,谢谢,那里有上调试没有错误了,但它仍然不会在来自Flickr的图片拉,鳕鱼有错误说法参照实体“api_sig”对于没有系统标识符可能是生成 – user3561656