請問jQuery中bind函數用法?
3 回答
拉風的咖菲貓
TA貢獻1995條經驗 獲得超2個贊
$('#idName').click(function(event){
$(this).val();// 當然的元素,直接使用this即可。
//$(this)把this轉化成jQuery對象
});
- 3 回答
- 0 關注
- 316 瀏覽
添加回答
舉報
0/150
提交
取消
