<input?type="button"?id="btnShow"?value="加載"?/>
<ul></ul>?$(function?()?{
????????????????$("#btnShow").on("click",?function?()?{
????????????????????var?$this?=?$(this);
????????????????????$("ul")
????????????????????.html("<img?src='Images/Loading.gif'?alt=''/>")?
????????????????????.load("http://idcbgp.cn/data/fruit_part.html",function()?{?
????????????????????????$this.attr("disabled",?"true");?
????????????????????});
????????????????
????????????????});
????????????});請(qǐng)問(wèn)一下,加載的loading.gif圖片要手動(dòng)去除嗎?還是load完之后自動(dòng)就消失了?
AJAX請(qǐng)求問(wèn)題
慕勒5811226
2016-06-26 22:23:42