Javascript 用“遍历对象”;至于;打破mobile Safari/533.1

Javascript 用“遍历对象”;至于;打破mobile Safari/533.1,javascript,mobile-safari,Javascript,Mobile Safari,我觉得这很直截了当。不确定这为什么会导致Mobile Safari出现问题 var rowIndexArr = []; var rowDatas = {"11480":{"tags":["Automotive"]}}; alert('still working'); // <-- works fine alert(rowDatas[11480].tags[0]) // <-- will alert "Automotive"; // what appears to be bre

我觉得这很直截了当。不确定这为什么会导致Mobile Safari出现问题

var rowIndexArr = [];
var rowDatas = {"11480":{"tags":["Automotive"]}};
alert('still working'); // <-- works fine   
alert(rowDatas[11480].tags[0]) // <-- will alert "Automotive";

// what appears to be breaking the code
for(var index in rowDatas){
    rowIndexArr.push(index);
}


alert('still working?');  // <-- dead at this point.
var rowIndexArr=[];
var rowDatas={“11480”:{“tags”:[“Automotive”]};

警报(“仍在工作”);//你和weinre核对过控制台上是否记录了错误吗?@Pointy,我没有。我只是用“警报”来找出问题所在。我还没有用过weinre。weinre是一种轻微的颈部疼痛,但一旦你把它安装好,它比在黑暗中盲目摸索要好得多:)