請問jQuery中bind函數(shù)用法?
3 回答

拉風(fēng)的咖菲貓
TA貢獻1995條經(jīng)驗 獲得超2個贊
$('#idName').click(function(event){
$(this).val();// 當(dāng)然的元素,直接使用this即可。
//$(this)把this轉(zhuǎn)化成jQuery對象
});
- 3 回答
- 0 關(guān)注
- 310 瀏覽
添加回答
舉報
0/150
提交
取消