读书人

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

发布时间: 2011-12-23 23:32:01 作者: rapoo

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和规则集。

读书人网 >Eclipse开发

热点推荐