+运算符用于字符串和数字之间相加的区别
<body>
<p id="p1"></p>
<p id="p2"></p>
<p id="p3"></p>
<script type="text/javascript">
//+ 运算符可用于字符串相加(级联)
var x = "100"; //字符串
var y = 10;
var z = 10;
var xx = x + y + z;
document.getElementById("p1").innerHTML = xx; //输出1001010
var yy = y + z + x;
document.getElementById("p2").innerHTML = yy;//输出20100
var zz = y + z;
document.getElementById("p3").innerHTML = zz; //输出20
</script>
</body>