JavaScript 学习之 -- 重定义已有方法
Function.prototype.toString = function () {
return "I wish everyone happy !"
}
function saySth () {
alert("55555");
}
alert(saySth.toString());
//I wish everyone happy !
Function.prototype.toString = function () {
return "I wish everyone happy !"
}
function saySth () {
alert("55555");
}
alert(saySth.toString());
//I wish everyone happy !