Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 Ruby 做一个项目,我希望能够用 JavaScript 为它编写插件,所以我正在为它开发一个 JavaScript API。我该怎么做呢?
我建议使用现有的 javascript 解释器,例如therubyracer. 您可以评估插件代码并通过它与之交互。
therubyracer