随笔-57  评论-129  文章-0  trackbacks-0
今天抽空测试了一下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 金大为 阅读(109) 评论(0)  编辑  收藏 所属分类: JavaScript

只有注册用户登录后才能发表评论。


网站导航: