报错:execjs._exceptions.ProgramError: ReferenceError: window is not defined 解决:定义一个就行 var window = {}; 然后再看它读了window的哪些属性 都补上就行