為啥本地執行什么都加載不出來
? $(function () {
??????????????? $("#btnShow").bind("click", function () {
??????????????????? var $this = $(this);
??????????????????? $.get("http://www.xianlaiwan.cn/data/info_f.php", function (data){
??????????????????????? $(this).attr("disabled", "true");
??????????????????????? $("ul").append("<li>我的名字叫:" + data.name + "</li>");
??????????????????????? $("ul").append("<li>男朋友對我說:" + data.say + "</li>");
??????????????????? }, "json");
??????????????? })
??????????? });
2016-05-21
要部署到服務器上面才可以,試試tomcat