在浏览器之外解释JavaScript? [英] Interpreting JavaScript outside of the browser?

查看:86
本文介绍了在浏览器之外解释JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这更多是出于好奇,这是一个真正的要求,但我想知道是否可以将JavaScript视为(理想情况下)是一流的.NET公民,或者(其次)有一些方法来调用/解释纯JavaScript桌面设置中的函数(不需要DOM)?

This is more out of curiosity that a real requirement, but I'm wondering if it's possible to treat JavaScript as (ideally) a first-class .NET citizen, or (secondarily) have some way of invoking/interpreting pure JavaScript functions (that don't require the DOM) in a desktop setting?

有没有人尝试过实现CLR版本的JavaScript?关于这一点,我想到了一些事情,但现在我想到它可能是PHP,而不是JavaScript。

Has anyone ever attempted implementing a CLR version of JavaScript? Something tugs at the back of my mind concerning this, but now that I think about it it was probably PHP, not JavaScript.

推荐答案

对于您的第二个选项,有 Rhino 类似的东西

For your second option, there's Rhino and things like it.

这篇关于在浏览器之外解释JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆