for(i=0; i<1000; i++) {
if (test[i].substr(0, 2) == "上海")
alert("good! test[" + i + "]");
}