js字符串数字计算

 

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

var a=1;

var b='2';

var c= a+b;(12)

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

posted @ 2016-01-12 16:11  少年工藤  阅读(924)  评论(0)    收藏  举报