大侠帮忙解释一下
下面是这个textList.js文件的代码:
var textList = new Array();
// addIdentify.jsp
textList["NoFeaturesFound"] = "No features found at that location.";
textList["IdTitle"] = "Feature Data";
// toolbar.htm
textList["Clear"] = "Clear Selection";
textList["FullExtent"] = "Zoom to Full Extent";
textList["Identify"] = "Identify";
textList["Legend"] = "Show Legend";
textList["NewService"] = "Load Service";
textList["Pan"] = "Pan";
textList["Select"] = "Select by Rectangle";
textList["ZoomIn"] = "Zoom In";
textList["ZoomOut"] = "Zoom Out";
// layerList.htm
textList["ActiveLayer"] = "Active Layer";
textList["LayerList"] = "Layers";
textList["RefreshMap"] = "Refresh Map";
后面还有很多这样的东西.请问这些语句在干什么??为什么要把他们统一放进这个文件里面??
还有这些语句在其他的文件代码里面是怎么用的??