When using MyEclipse to import a new project or write code, the most depressing is that it js,jsp,html validation is too strict, sometimes presenting a red fork or a yellow sigh, a run on the report cannot return from outside a function or The wrong of method,
To explain two solutions to this, this article resolves the cannot return from outside a function or method error.
Select the current project, right-click Properties, pop up the properties interface
Then select myeclipse->validation->excluded resource to find files or folders that do not need to be verified
Tick the file or folder that you do not need to verify, and then click the "OK" button to save it. My js,jsp,html is under Webroot, so I
Resolves the cannot return from outside a function or method report error. Law one: In the MyEclipse menu bar window--->preferences--->myeclipse--->validation--->javascript validator for Js files Bulid check box to remove it.
Law two: In the construction project right-click, find myeclipse-->exclude Form validation Click, hit the √ number, JS error is gone!
MyEclipse how to cancel validation of a file