`
King_XR
  • 浏览: 26596 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

MyEclipse中js出现“Using ++ and -- is considered harmful”的解决方法

阅读更多
今天在写一个JS的时候,因为写到一个for循环,用i++,发现报警告了。
Using ++ and -- is considered harmful

经过查资料,解决方案如下:
第一、MyEclipse菜单栏 --> Window --> Preferences --> MyEclipse --> Files and Editors --> JavaScript --> JavaScript Source --> Validation框里,把  [ ++ and -- considered harmful ] 复选框取消。
第二、再打开任意一个JS文件,点击右键 --> MyEclipse --> Remove All Validation Markers。
这个时候,你就发现, i++ 或者 i-- 的警告就没有了!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics