Analysis on how to realize the function of MyEclipse DeBug to JS script
Today, I will talk to you about how to achieve MyEclipse DeBug on JS script function analysis, many people may not understand, in order to let everyone know more, Xiaobian summarized the following content, I hope you can harvest according to this article.
MyEclipse DeBug functionality for JS (JavaScript) scripts.
When using JS, most of them are used to manipulate DOM and DHTML objects and elements, so JS runs and needs Browser environment support.
Therefore, debugging of.js files, simply introduce them into the execution page, you can start the MyEclipse DeBug function.
For example:
MyEclipse DeBug uses 1. The rhino.js file reads as follows:
var str = "HelloWorld" ;
alert(str);
MyEclipse DeBug Usage 2. The rhino.html file reads as follows:
﹤! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"﹥ ﹤html﹥ ﹤head﹥ ﹤meta http-equiv="Content-Type" content="text/html; charset=UTF-8"﹥ ﹤title﹥Rhino JavaScript For Java﹤/title﹥ ﹤script Language="JavaScript" src="rhino.js"﹥﹤/script﹥ ﹤/head﹥ ﹤body﹥﹤/body﹥ ﹤/html﹥
MyEclipse DeBug 3. Click Debug As> JavaScript Application to enter MyEclipse Web2.0 Browser window.
Enter the access path of rhino.html in the Address field, such as http://localhost:8080/Rhino/rhino.html to enter MyEclipse DeBug status.
After reading the above, do you have any further understanding of how to implement MyEclipse DeBug's functional analysis of JS scripts? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.