json問題
?$("#btnShow").bind("click", function () {
? ? ? ? ? ? ? ? ? ? var $this = $(this);
? ? ? ? ? ? ? ? ? ? $.get("http://idcbgp.cn/data/info_f.php",function(data) {
? ? ? ? ? ? ? ? ? ? ? ? $this.attr("disabled", "true");
? ? ? ? ? ? ? ? ? ? ? ? $("ul").append("<li>我的名字叫:" + data.name + "</li>");
? ? ? ? ? ? ? ? ? ? ? ? $("ul").append("<li>男朋友對我說:" + data.say + "</li>");
? ? ? ? ? ? ? ? ? ? }, "json");
? ? ? ? ? ? ? ? })
? ? ? ? ? ? });
上面代碼中最后的“JSON”是用來干嘛的?
2016-02-26
返回的數(shù)據(jù)格式為json
2016-02-26
返回內(nèi)容格式為json
2016-02-26
是不是以json形式獲取?