JQuery on()
JQuery on()
记录下JQuery 的on函数,最近经常用,查了又忘忘了又查的,在blog上简单记录下
on
JavaScript
.on( events [, selector ] [, data ], handler(eventObject) )
如上,应该是先事件,后选择对象,然后function,例如
```JavaScript```
$("#gridBody").on("click",".detailBtn",function(){
window.location.href = 'admin-transferring-student!toDetail?id='+ $(this).data("projectId");
});