How to run JavaScript files in eclipse

Source: Internet
Author: User
Eclipse + JavaScript developer tools development and running JScript

The prompt in this environment is good. You can dynamically update the smart prompt based on the actual value of the variable. Or vs2010.

After external configuration tools is configured, you can run JS files on the cscript host. Of course, JavaScript code can only be related to JavaScript core and Windows Script Host, and cannot depend on browser code.

The configuration is simple,

In the run> external configuration tools... dialog box, create a STARTUP configuration,

Select Main Tab

In the location text box, enter

C: \ windows \ system32 \ cscript.exe

In the arguments text box, enter

$ {Workspace_loc:/jscripttest/Main. js}

You can. $ {Workspace_loc} indicates the path of your JavaScript project. The red part is the specific path of the JS file to be run.

After this is done, you only need to click the button on the toolbar to run the external tool to run your JS Code.

This configuration is easy to develop and test the Windows Script Host script.

 

You can also configure to run the HTM file, as long as you enter the path of your IE in the location text box, such

C: \ Program Files (x86) \ Internet Explorer \ ipolice.exe

Do not use quotation marks.

Enter the path of the HTM file in the arguments text box.

Switch to the common tab and remove the allocate console check box.

This can be used as a simple web development tool.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.