jquery去掉click事件

1:使用removeAttr( )和attr( )

$("a").attr("click",test());rem

$("a").removeAttr("click");test

2:使用on( )和off( )

$("a").on("click",test());cli

$("a").off("click");

相關文章
相關標籤/搜索