这样覆写Object类的toString方法对吗

  这些覆写Object类的toString方法对吗?
<html>
<head>
</head>
<body>
</body>
<script type="text/javascript">
Object.prototype.toString=function()
{
alert("s");
}
var o=new Object();
//s
o.toString();
</script>

</html>


下边是论坛里回复我的



原文地址:https://www.cnblogs.com/xinyuyuanm/p/3014160.html