js字符串数字计算

1.字符串转换为数字用 -0

var a=1;

var b='2';

var c= a+b;(12)

var c=a+(b-0);(3)

原文地址:https://www.cnblogs.com/ITCoNan/p/5124676.html