简体   繁体   中英

Windows Script Host is giving an error running JavaScript

I keep trying to open an index.js file, and even reinstalled my Windows and tried every single thing that was recommended on the Web, but I keep getting this error.

Script:      C:\Users\usename\foldeename\file.js
Line:        1
Char:        1
Error:       Syntax error
Code:        800A03EA
Source:      Microsoft JScript compilation error

Is this index.js JavaScript or JScript? WSH doesn't support JavaScript, it supports JScript. JScript also uses the .js extension. To run JavaScript, use NodeJS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM