js中toString和valueOf的区别

字符串运算优先toString();

数值运算优先valueOf();

都是js隐式调用。

原文地址:https://www.cnblogs.com/CZheng7/p/12608966.html