当前位置: 首页 > 图文教程 > 网络编程 > Javascript > [原创]保存的js无法执行的解决办法

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 [原创]保存的js无法执行的解决办法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 136 ::
收藏到网摘: n/a

好多新手,对于保存的js无法运行,或直接就是用记事本之类的软件打开,而我们需要看到的是执行效果,我们经常用记事本或eidtplus手写的同志,基本上都是让js后缀的脚本用文本打开,如果突然想让它执行,怎么办呢,方法呢有两个
1、比较根本的解决就是:例如run.js,我们直接在这个文件上右键-》调出打开方式--选择程序--浏览到系统盘(假如是c盘)找到c:\windows(或winnt)\system32\wscript.exe即可
2.直接将run.js的改成run.jse,这样更容易运行