回答我自己的問題。 :)
的代碼有這個巨大的產品,圖像,文字,ETCS舉辦這樣的聲明:
content: function() {
Content = {
'product-01': {
'flash': 'swf file',
'tabs': {
0: {
'img': 'image',
'paragraphs': {
0: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
1: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
2: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
}
}
},
1: {
'img': 'image',
'paragraphs': {
0: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
1: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
2: {
'headline': 'h.',
'text': 'lorem lorem',
'modal': {
'headline': 'lorem lorem.',
'img': 'image',
'text': 'lorem'
}
},
}
}
}, // and so it goes
原來,問題只是在這些聲明的一個結束一個逗號。 IE只是不想繼續腳本和重定向。奇怪的是,它沒有顯示任何錯誤...
感謝你們所有人,並記住:一個缺少或額外的逗號可能導致大量的開發時間浪費。請務必仔細閱讀您的密碼。 ;)
乾杯!
什麼是'this.var'? – Neal
這是一個變量,用於在我的頁面上調用產品的名稱。對不起,忘了澄清。 –
似乎爲我工作 - http://jsfiddle.net/mrtsherman/DM4m6/1/ - 您的代碼中正在發生的其他事情。你確定一個腳本錯誤不能阻止它執行或者代碼路徑到達嗎? – mrtsherman