Aar0n 在编译好的 js 文件最上面加入两行代码 var window = window || global;var document = document || (window.document = {});