完全按照楼主的语句添加进去的,可是还是不行,显示的还是英文,不知道哪里的问题啊
function toChineseLocation(location)
{
var retLocation = location;
switch(location)
{
case ("Tangshan, CHN"):
retLocation = "中国-唐山";//
break;
case ("Beijing, CHN"):
retLocation = "中国-北京";//
break;
case ("Harbin, CHN"):
retLocation = "中国-哈尔滨";//
break;
default:
break;
}
return retLocation;
} |