求解,getjson函数哪里写错了解决方法
求解,getjson函数哪里写错了
<script><br />$(function(){<br />$.getjson("http://rate.taobao.com/member_rate.htm?content=1&result=0&from=rate&user_id=281461646&identity=1&rater=0&direction=0&timeLine=-7&callback=shop_rate_list", function(json){<br /> alert("JSON Data: " + json);<br />});<br />})<br /><br />弹不出获取的代码,求哪里写错了<br><br /><font color='#e78608'>------解决方案--------------------<br />而且,js中的json只是轻量级的数组,类似:<br /><dl class='code'>JScript code<pre class="brush:php;toolbar:false">
var o={"xlid":"cxh","xldigitid":123456,"topscore":2000,"topplaytime":"2009-08-20"};
var jsonranklist=[{"xlid":"cxh","xldigitid":123456,"topscore":2000,"topplaytime":"2009-08-20"},{"xlid":"zd","xldigitid":123456,"topscore":1500,"topplaytime":"2009-11-20"}];
<br /><font color='#e78608'>------解决方案--------------------<br />参考#2,而且你的json数据还封装在函数shop_rate_list()中,这就搞不懂了。去JavaScript区问问吧 <div class="clear"></script>

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

使用golang中的json.MarshalIndent函數將結構體轉換為格式化的JSON字串
