首页 > 技术文章 > jquery on 事件

huchaoheng 2017-03-21 19:10 原文

jQuery on 相关的事件如下所示

相关JS 如下 记得引入 jQuery 相关的js

$(document).on("click","[name='huchao']",function () {
alert("huchao");
// body...
})

相关的DOM

<input type="button" name="huchao" id="huchao" value="点击huchao"  />

 

推荐阅读