我目前正在做一个小篇的文字,在一阵列中tag着:
var paises = [ spain , australia ];
var leftX = [ 270 , 575 ];
var topY = [ 60 , 220 ];
当我需要接触他们时:
clase = spain ;
var left_ = leftX[paises.indexOf(clase)];
var top_ = topY[paises.indexOf(clase)];
This might be confusing for my workmates to update. How could I make it easier?