abstrait:(1) jQuery事件函數(shù)如:$("#myButton").click(function(){ //Add your logic here...});$("#myButton").hide(); $("#myButton").show();(2) 常用例子:<1> 將函數(shù)綁定到文檔的就緒事件(當文檔完成加載時): $(do
(1) jQuery事件函數(shù)
如:$("#myButton").click(function(){
//Add your logic here...
});
$("#myButton").hide(); $("#myButton").show();
(2) 常用例子:
<1> 將函數(shù)綁定到文檔的就緒事件(當文檔完成加載時): $(document).ready(function(){...});
<2> 單擊事件:$("#myButton").click(function(){...});
<3> 雙擊事件:$("#myButton").dblclick(function(){...});
<4> 獲得焦點:$("#myButton").focus(functino(){...});
<5> 鼠標懸停:$("#myButton").mouseover(function(){...});
其他更多不再贅述。