亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么只到加載圖片那一步

為什么只到加載圖片那一步

taba 2017-02-07 22:00:47
<!doctype?html> <html?xmlns="http://www.w3.org/1999/xhtml"> <head> ?<title>使用load()方法異步請求數據</title> ?<script?src="http://libs.baidu.com/jquery/1.9.0/jquery.js"?type="text/javascript"></script> ?<link?href="style.css"?rel="stylesheet"?type="text/css"?/> </head> <body> <div?id="divtest"> <div?class="title"> <span?class="fl">我最愛吃的水果</span> <span?class="fr"> <input?id="btnshow"?type="button"?value="加載"?/> </span> </div> <ul></ul> </div> <script?type?=?"text/javascript"> $(function(){ $("#btnshow").bind("click",?function(){ var?$this?=?$(this); $("ul") .html("<img?src='Loading.gif'?alt=''?/>") .load("fruit_part.html",?function(){ $this.attr("disabled","true"); }); }); }); </script> </body> </html>? ? 同一文件夾下面有Loading.gif和fruit_part.html了
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 1894 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號