87,917
社区成员
发帖
与我相关
我的任务
分享
if (!Array.prototype.forEach)
{
Array.prototype.forEach = function(fun /*, thisp*/)//l@@k /*, thisp*/什么用法
{
var len = this.length >>> 0;//l@@k什么用法
if (typeof fun != "function")
throw new TypeError();
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
if (i in this)
fun.call(thisp, this[i], i, this);
}
};
}
var temp
temp = -14 >>> 2
变量 temp 的值为 -14 (即二进制的 11111111 11111111 11111111 11110010),向右移两位后等于 1073741820 (即二进制的 00111111 11111111 11111111 11111100)。