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://codercto.com/courses/l/35.html
Distributed Systems
Sukumar Ghosh / Chapman and Hall/CRC / 2014-7-14 / USD 119.95
Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying theory and practical applications of distributed computing. As in the p......一起来看看 《Distributed Systems》 这本书的介绍吧!