Ash*_*ppa 12 javascript windows
什么是适用于Windows的JavaScript编译器或解释器?
我最近读过Eloquent JavaScript这本书.本书介绍了使用JavaScript作为第一语言编程的读者.遗憾的是,程序仅限于在嵌入HTML的浏览器中运行.所以,我想知道是否可以编写可以独立执行的JavaScript程序.
编译器或解释器应该可以作为预编译的二进制文件轻松使用,可以由初学者下载和安装.他应该能够编写使用此编译器编译的简单独立JavaScript程序.可以使用此编译器的其他JavaScript库,框架,IDE和调试支持将是一个优势.
Ale*_*ett 10
即使您不选择将其用于Web应用程序,Node.js也能很好地用作解释器.它是一个在V8 JavaScript引擎上运行的框架.这是有据可查的有一个大的选择官方和第三方模块.
它确实需要cygwin在Windows上运行(或者您可以使用MingW编译它).在node-js.prcn.co.cc上有预编译的二进制文件,包括所需的cygwin库.
还没有人提到过,window自己的javascript编译器:http://msdn.microsoft.com/en-us/library/vstudio/7435xtz6(v = vs.100).aspx
Microsoft (R) JScript Compiler version 8.00.50727
for Microsoft (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corporation 1996-2005. All rights reserved.
jsc [options] <source files> [[options] <source files>...]
JScript Compiler Options
- OUTPUT FILES -
/out:<file> Specify name of binary output file
/t[arget]:exe Create a console application (default)
/t[arget]:winexe Create a windows application
/t[arget]:library Create a library assembly
/platform:<platform> Limit which platforms this code can run on; must be x86, Itanium, x64, or anycpu, which is the default
- INPUT FILES -
/autoref[+|-] Automatically reference assemblies based on imported namespaces and fully-qualified names (on by default)
/lib:<path> Specify additional directories to search in for references
/r[eference]:<file list> Reference metadata from the specified assembly file
<file list>: <assembly name>[;<assembly name>...]
- RESOURCES -
/win32res:<file> Specifies Win32 resource file (.res)
/res[ource]:<info> Embeds the specified resource
<info>: <filename>[,<name>[,public|private]]
/linkres[ource]:<info> Links the specified resource to this assembly
<info>: <filename>[,<name>[,public|private]]
- CODE GENERATION -
/debug[+|-] Emit debugging information
/fast[+|-] Disable language features to allow better code generation
/warnaserror[+|-] Treat warnings as errors
/w[arn]:<level> Set warning level (0-4)
- MISCELLANEOUS -
@<filename> Read response file for more options
/? Display help
/help Display help
/d[efine]:<symbols> Define conditional compilation symbol(s)
/nologo Do not display compiler copyright banner
/print[+|-] Provide print() function
- ADVANCED -
/codepage:<id> Use the specified code page ID to open source files
/lcid:<id> Use the specified LCID for messages and default code page
/nostdlib[+|-] Do not import standard library (mscorlib.dll) and change autoref default to off
/utf8output[+|-] Emit compiler output in UTF-8 character encoding
/versionsafe[+|-] Specify default for members not marked 'override' or 'hide'
Run Code Online (Sandbox Code Playgroud)
在任何Windows安装中通常都会有几个副本,但它们通常不在路径中,因此您必须找到它们.
编译器能够将javascript文件编译成可在任何安装了.NET的Windows机器上运行的可执行文件.
| 归档时间: |
|
| 查看次数: |
36325 次 |
| 最近记录: |