今天抽空測試了一下JSI當前狀態的瀏覽器兼容性,一個頭疼的問題困擾了很久。
找出問題出自,懷疑是一個opera的bug。
function test(x){
try{
if(x){
return 1;
}else{
return 2;
}
}catch(e){
x=1;
}finally{
x=2;
}
}
語法檢查就通不過,報告錯誤:
le://localhost/D:/eclipse/workspace/JSI/web/scripts/core.js
Event thread: BeforeExternalScript
opera8報錯,opera9好像就沒有這個問題。
貼出來,讓有類似問題的人省點心。
posted on 2007-06-20 21:42
金大為 閱讀(126)
評論(0) 編輯 收藏 所屬分類:
JavaScript