您可以设置ECMAScript对象的the internal [[Class]] property吗?
最佳答案
您不能欺骗体面的javascript引擎。
您可以使用以下方式诱骗用户区号
x.toString = function () {
return '[object Array]';
}
您可以设置ECMAScript对象的the internal [[Class]] property吗?
最佳答案
您不能欺骗体面的javascript引擎。
您可以使用以下方式诱骗用户区号
x.toString = function () {
return '[object Array]';
}