安装:
pip install PyExecJS
运行时,execjs会自动使用当前电脑上的运行时环境(建议用nodejs)
简单使用
1
2js = execjs.compile(js_text)
result = js.call('function_name',arg_1,arg_2,...,arg_n)
参考:
https://blog.csdn.net/weixin_40539892/article/details/88982716
安装:pip install PyExecJS
运行时,execjs会自动使用当前电脑上的运行时环境(建议用nodejs)
简单使用
1 | js = execjs.compile(js_text) |
参考:
https://blog.csdn.net/weixin_40539892/article/details/88982716