字符串转数字:
var wanli = "666"; var number = Number(wanli);
数字转字符串:
var wanli = 666; var string = wanli.toString(); //或者下面这样也可以强转,比较方便 var string = wanli+"";