jQuery.noop()方法
jQuery 教程
· 2019-03-29 06:18:28
实例
传入一个空函数作为参数,返回一个空数组
$(function () {
var result = $.map( [1, 2, 3], $.noop );
document.writeln( result.length ); // 0
})
定义和用法
$.noop() 函数是一个空函数。
注意:此方法不接受任何参数。比如当插件提供了一个可选的回调函数接口,那么如果调用的时候没有传递这个回调函数,就用$.noop来代替执行。
语法
$.noop()
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Programming Amazon Web Services
James Murty / O'Reilly Media / 2008-3-25 / USD 49.99
Building on the success of its storefront and fulfillment services, Amazon now allows businesses to "rent" computing power, data storage and bandwidth on its vast network platform. This book demonstra......一起来看看 《Programming Amazon Web Services》 这本书的介绍吧!