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