我一直在偶然发现 Objective-J。它应该是 JavaScript 的超集……但如果没有浏览器插件或某些插件,那怎么可能呢?他们如何绕过 JavaScript 的语法并使其看起来像 Objective-C 代码?我的意思是...很酷...但我不明白 ;) 我必须在 Objective-J 代码进入浏览器之前对其进行编译吗?
最佳答案
根据Wikipedia article on Objective-J :
Programs written in Objective-J need to be preprocessed before being run by a web browser's JavaScript virtual machine. This step can occur in the web browser at runtime or by a compiler which translates Objective-J programs into pure JavaScript code. The Objective-J compiler is written in JavaScript, consequently deploying Objective-J programs does not require a plugin attached to the web browser.
关于javascript - Objective-J 本质上是 JavaScript 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1983217/