要运行的例子,就用官网中的例子:https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/How_to_embed_the_JavaScript_engine
How to embed the JavaScript engine
到网上查查看是什么类型的错误,果然有很多文章说到这样的问题,下面是博主;井底之蛙 在C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
博文地址:https://blog.csdn.net/heimabuhei/article/details/79976270