标签:
记得c语言里的printf和java里的println吗,那么在JavaScript中怎么实现同样的功能呢
window.onload = function() { var para = document.createElement("p"); var info = "nodeName: "; info+= para.nodeName; info+= " nodeType: "; info+= para.nodeType; alert(info); }
其实是字符串拼接 +
标签:
原文地址:http://www.cnblogs.com/xzqhextt/p/4558624.html