所有
下面的代码似乎在Chrome中运行正常,但Firefox给了我一个"缺少:在属性ID"之后SyntaxError错误。我认为#34; navigateToDefault()"开头的语法存在问题。有什么想法吗?谢谢!
var currentMapSelection = {
PROVINCIE: undefined,
GM_CODE: undefined,
WK_CODE: undefined,
navigateToDefault(){
this.PROVINCIE = undefined;
this.GM_CODE = undefined;
this.WK_CODE = undefined;
unhideVisited();
xyz = [482,174.75,40];
drawCountry('nld');
updateLegend(colorScales.provincie)
},
navigateToProv(prov){
this.PROVINCIE = prov;
this.GM_CODE = undefined;
this.WK_CODE = undefined;
unhideVisited();
loadProvinceData(prov)
updateLegend(colorScales.gemeente)
},
navigateBack(){
if (this.GM_CODE) this.navigateToProv(this.PROVINCIE);
else this.navigateToDefault();
}
}