我需要在Jquery中找到可以在IE8和真实浏览器中工作的东西.我是Jquery的新手,以下是我在现代浏览器中运行的代码:
$('#FIELD_'+office_id).on('change',function(){
offices = $(this).val();
for(var i=0; i<=Object.keys(southland.address).length;i++){
if(offices == Object.keys(southland.address)[i]){
address = southland.address[offices]Object.keys(southland.address[offices])[0]];
}
}
Run Code Online (Sandbox Code Playgroud)
其中southland.address来自外部阵列.这在Chrome,IE10和FF中完美无缺,我能为IE8做些什么吗?
jquery ×1