parseInt与valueof的区别

paseInt每次构造一个常量值,

valueOf是对象比较,默认值会在-128-127之间返回缓存中已经存在的已有对象

猜你喜欢

转载自blog.csdn.net/qq_37669050/article/details/100739910