jQuery.merge的疑问
jQuery.merge = function (first, second) {var len = +second.length,
j = 0,
i = first.length;
for (; j < len; j++) {
first[i++] = second[j];
}
first.length = i;
return first;
}
var len = +second.length
为啥不var len = second.length,
而是var len = +second.length
+的作用是什么
回答
+second.length 就是变为数值类型
以上是 jQuery.merge的疑问 的全部内容, 来源链接: utcz.com/a/33487.html