在浏览器之外解释JavaScript? [英] Interpreting JavaScript outside of the browser?
问题描述
这更多是出于好奇,这是一个真正的要求,但我想知道是否可以将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.
推荐答案
For your second option, there's Rhino and things like it.
这篇关于在浏览器之外解释JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!