首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse写js脚本,如何才算最规范的,

2011-12-23 
eclipse写js脚本,怎么才算最规范的,高手指点。在Eclipse写js脚本,每个函数前面都有一个感叹号,提示下面的内

eclipse写js脚本,怎么才算最规范的,高手指点。
在Eclipse写js脚本,每个函数前面都有一个感叹号,提示下面的内容,不知道怎么写才能把这个感叹号去掉。

  Multiple annotations found at this line:
  -Declaration of variable Option was not found in function fillSel or enclosing scope
  -Declaration of variable document was not found in function fillSel or enclosing scope

[解决办法]
你没有写对相应的变量写注释

这种可以不管他
[解决办法]
你能否把代码亮出来?让俺看一看。

Eclipse默认是遵照sun的代码规范的。

你可以查一下sun的checkStyle和规则集。

热点排行