标签:number lin alert concat ack nat 写法 nbsp tac
JavaScript里两个变量
var a = 2;
var b = 1;
var c = "(" + a + b +")";
alert(c);
结果输出:(21)
正确写法:
var c = + a + + b;
var d = "(" + c +")";
标签:number lin alert concat ack nat 写法 nbsp tac
原文地址:http://www.cnblogs.com/rgqancy/p/6724344.html