因为在做一个 Golang 的爬虫项目,遇到一个用js实现的类似于加密算法,不太好分析!想直接用第三方库(github.com/robertkrimen/otto)执行这个js,但是报错,因为otto不支持浏览器window对象!附上部分代码截图!有遇到过的大神帮帮忙,非常感谢![整体js折叠.jpg](https://static.studygolang.com/171019/82548830a1e3fe1a5faa3a5e3ac69d18.jpg)![JS结尾.jpg](https://static.studygolang.com/171019/79a9e833be5824e07e1d72de94a9b7a1.jpg)![运行代码.jpg](https://static.studygolang.com/171019/7c2c980b147d9fdee205a6a44b5456c3.jpg)