Jquery之Bind方法参数传递与接收的三种方法_jquery
来源:动视网
责编:小采
时间:2020-11-27 21:24:56
Jquery之Bind方法参数传递与接收的三种方法_jquery
Jquery之Bind方法参数传递与接收的三种方法_jquery:方法一、 function GetCode(event) { alert(event.data.foo); } $(document).ready(function() { $(#summary).bind(click, {foo:'abc'} ,GetCode); }); 方法二、 函数句柄 $(#summary).bind
导读Jquery之Bind方法参数传递与接收的三种方法_jquery:方法一、 function GetCode(event) { alert(event.data.foo); } $(document).ready(function() { $(#summary).bind(click, {foo:'abc'} ,GetCode); }); 方法二、 函数句柄 $(#summary).bind

方法一、
方法二、
函数句柄
方法三、
函数闭包
Jquery之Bind方法参数传递与接收的三种方法_jquery
Jquery之Bind方法参数传递与接收的三种方法_jquery:方法一、 function GetCode(event) { alert(event.data.foo); } $(document).ready(function() { $(#summary).bind(click, {foo:'abc'} ,GetCode); }); 方法二、 函数句柄 $(#summary).bind