如何实现 jquery绑定函数同时传参?
4 回答

森栏
TA贡献1810条经验 获得超5个赞
$(function() {
$("#mybyn").click(function(e) {
alert($(this).attr("id"));
});
})
e表示事件
$(this)表示该控件自己
- 4 回答
- 0 关注
- 360 浏览
添加回答
举报
0/150
提交
取消