大侠帮忙解释一下

xtyy_2000 2005-01-21 09:11:19
下面是这个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";

后面还有很多这样的东西.请问这些语句在干什么??为什么要把他们统一放进这个文件里面??
还有这些语句在其他的文件代码里面是怎么用的??

...全文
155 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xtyy_2000 2005-01-21
  • 打赏
  • 举报
回复
up
xtyy_2000 2005-01-21
  • 打赏
  • 举报
回复
up!
drugon 2005-01-21
  • 打赏
  • 举报
回复
.js是一个javascript文件,放在一起有利于管理。
xtyy_2000 2005-01-21
  • 打赏
  • 举报
回复
up

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧