English 中文(简体)
Javascript、V8、资源
原标题:Javascript, V8, resources

最近我学习了很多Javascript,我对这种语言的表达能力感到惊讶(也对它的一些怪癖感到恼火,但没有一种语言缺少这些怪癖)。我想开始更多地使用它。

在编写V8时,我正在使用svn-coing,我想知道有什么好的资源可以考虑。有什么标准的图书馆吗?我应该看什么?

对于我通常用python编写的一次性脚本,将javascript作为桌面脚本语言的可行性如何?

我甚至还没有开始,所以我可能错过了一个重要的问题。还有什么我应该知道或思考的吗?

我知道这是一个非常宽泛的问题,没有特别针对性,所以非常感谢您抽出时间!

最佳回答

如果您想要一个基于javascript的功能齐全的环境,可以访问文件系统、网络(udp、tcp/ip)等,我建议您查看node.js--http://nodejs.org/

它使用v8,由Ryan Dahl和核心团队积极开发,并得到Joyent的支持--http://www.joyent.com/

它有一个很棒的社区(来吧,在freenode上的#node.js上向irc问好),每天在http://npmjs.org/程序包管理器。

编辑

此外,我要指出的是,虽然节点最初是从方向上看待CommonJS的,但后来它们几乎完全脱离了该社区。它有自己的模块系统和api。有些重叠,但合规性目前不是项目的目标。

问题回答

您可能对CommonJS这是Javascript社区最接近“标准库”的东西

使用符合CommonJS的系统,您可以使用JavaScript编写:

  • Server-side JavaScript applications
  • Command line tools
  • Desktop GUI-based applications
  • Hybrid applications (Titanium, Adobe AIR)




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签