How to execute Javascript function in C++

前端 未结 4 1172
南笙
南笙 2020-12-03 02:14

Please tell me, how to include a javascript header file or javascript function in C++ code. The C++ code is written in Linux(UBUNTU)?

Although i nee

4条回答
  •  时光说笑
    2020-12-03 02:48

    You might want to port your JS to C++; this should be a fairly simple task, as the two languages are moderately alike.

    Simply porting the functionality is likely to be far simpler than actually trying to use a JS parsing library, and likely less error prone.

提交回复
热议问题