不出現(xiàn)是有錯誤?
為何加載不出現(xiàn)呢?我錯了哪里?
? ? ? ??
? ? ? ? <script type="text/javascript">
? ? ? ? ? ? $(function () {
? ? ? ? ? ? ? ? $("#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");
? ? ? ? ? ? ? ? })
? ? ? ? ? ? });
? ? ? ? </script>
2017-01-13
function($data),這里的data不用加$
2017-01-04
樓上正解,看樓上~~
2017-01-04
,function($data),這里的data不用加$吧