怎样理解jquery中常用的匿名函数的参数传递问题。_百度知道
最佳答案: object.each( function(index, Element) ) The .each() method is designed to make DOM looping constructs concise and less error-prone. When ...更多关于为什么要把jQuery当参数传给匿名函数?的问题>>
jquery中,怎样将事件当成参数传递到方法中_百度知道
最佳答案: 可以传,只不过需要的是一个匿名函数: 因此,你可以改写test函数为这样: function test() { return function(){alert("aa");}; }更多关于为什么要把jQuery当参数传给匿名函数?的问题>>