Cannot return from outside a function or method.

myeclipse 10.0 中对html中的语句提示:

<input name="btnAddLine" type="button" id="btnAddLine"
    onClick="return addOneLineOnClick()" value="加入一行">

提示:Cannot return from outside a function or method.

解决方案:

window -->preferences -->myeclipse -->validation -->javascript validator for Js files 把Bulid 复选框的勾去掉

posted @ 2017-03-17 17:16  PoleStar  阅读(183)  评论(0编辑  收藏  举报