Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么时候应该使用jQuery.each()而不是Query.each()(http://underscorejs.org/)? 什么时候应该使用u.each()而不是jQuery.each()?_Jquery_Arrays - Fatal编程技术网

什么时候应该使用jQuery.each()而不是Query.each()(http://underscorejs.org/)? 什么时候应该使用u.each()而不是jQuery.each()?

什么时候应该使用jQuery.each()而不是Query.each()(http://underscorejs.org/)? 什么时候应该使用u.each()而不是jQuery.each()?,jquery,arrays,Jquery,Arrays,什么时候应该使用jQuery.each()而不是u.each() 什么时候应该使用u.each()而不是jQuery.each() 任何建议,请参见jQuery。each()应用于迭代包含许多DOM元素的jQuery对象,因为我们可以使用jQuery函数来操作它们 _.each()应用于迭代不需要 jQuery函数来操作它们。一个是jQuery,另一个是下划线。两者似乎都在做同样的事情。

什么时候应该使用jQuery.each()而不是u.each() 什么时候应该使用u.each()而不是jQuery.each()

任何建议,请参见jQuery。each()应用于迭代包含许多DOM元素的jQuery对象,因为我们可以使用jQuery函数来操作它们

_.each()应用于迭代不需要
jQuery函数来操作它们。

一个是jQuery,另一个是下划线。两者似乎都在做同样的事情。