我想在Javascript中定义以下内容:
var tileXml = new Array();
var tileTextAttribute = new Array();
var tileImageAttribute = new Array();
var tileNotification = new Array();
如:
var tileXml,tileTextAttribute,tileImageAttribute,tileNotification = new Array();
我应该是对的。出于某种原因它在第二种情况下失败了,为什么?
答案 0 :(得分:1)
不,你不能这样做,而不是这个
var tileXml = [],tileTextAttribute = [],tileImageAttribute = [],tileNotification = [];