2021-01-15 10:25发布
可以的
Function.prototype.clone = function() { var fct = this; var clone = function() { return fct.apply(this, arguments); }; clone.prototype = fct.prototype; for (property in fct) { if (fct.hasOwnProperty(property) && property !== 'prototype') { clone[property] = fct[property]; } } return clone;};
最多设置5个标签!
可以的
一周热门 更多>