toString检测



Function.prototype.toString = function (){

   if (typeof this !== 'function') {
    throw new TypeError("Function.prototype.toString requires that 'this' be a Function");
  }
    
    return '';
}



Object.create(Function.prototype.toString).toString();


posted @ 2025-09-08 12:14  AngDH  阅读(11)  评论(0)    收藏  举报