Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis on how to realize the function of MyEclipse DeBug to JS script

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report