$this.attr("disabled", "true"); 請問disabled是什么
2017-07-10
$(function () {
$("#btnShow").bind("click", function () {
var $this = $(this);
$("ul")
.html("<img src='Images/Loading.gif' alt=''/>")
.load('http://www.xianlaiwan.cn/data/fruit_part.html',function(){
$this.attr("value", "加載完畢");
});
});
});
$("#btnShow").bind("click", function () {
var $this = $(this);
$("ul")
.html("<img src='Images/Loading.gif' alt=''/>")
.load('http://www.xianlaiwan.cn/data/fruit_part.html',function(){
$this.attr("value", "加載完畢");
});
});
});
2017-07-10
在最外面寫(function($){......}(jQuery)是因為$.extend本身是jQuery庫里的插件,需調用
$("#btnShow").ajaxStart(function(){
$(this).val("正在請求數據...");
}).ajaxStop(function(){
$(this).val("數據請求完成!");
});
$
$(this).val("正在請求數據...");
}).ajaxStop(function(){
$(this).val("數據請求完成!");
});
$
2017-07-02
$("#btnShow").ajaxStart(function(){
$(this).val("正在請求數據...");
});
$("#btnShow").ajaxStop(function(){
$(this).val("數據請求完成!");
});
$(this).val("正在請求數據...");
});
$("#btnShow").ajaxStop(function(){
$(this).val("數據請求完成!");
});
2017-07-02
現在只是新手階段就想弄懂別人的源碼 , 你們想太多了吧.
他們寫的是面向對象 你們看得懂嗎, 再說, 前端也有MVC設計模式你們看得懂嗎
現在學習的只是 如何用一個插件 , 并不是如何去寫一個自己的插件
他們寫的是面向對象 你們看得懂嗎, 再說, 前端也有MVC設計模式你們看得懂嗎
現在學習的只是 如何用一個插件 , 并不是如何去寫一個自己的插件
2017-06-30