标签: jquery
有人知道什么时候
$("#submit").on("click", function(){
出来了。这意味着什么版本的Jquery开始使用.on()
答案 0 :(得分:5)
As of jQuery 1.7, the .on() method provides all functionality required for attaching event handlers. For help in converting from older jQuery event methods, see .bind(), .delegate(), and .live().
答案 1 :(得分:5)
来自the documentation:
.on( events [, selector] [, data], handler(eventObject) ) 版本已添加:1.7
.on( events [, selector] [, data], handler(eventObject) )