js2py模块加载js文件时,出现如下错误:
js2py.internals.simplex.JsException: ReferenceError: navigator is not defined
在js文档头部添加如下代码:
navigator={userAgent: 'node.js',appName: "Microsoft Internet Explorer",};