素材巴巴 > 程序开发 >

引用 JSEncrypt 模块提示ReferenceError: window is not defined jsencrypt.js 里 window 未定义

程序开发 2023-09-03 06:10:49

安装jsencrypt

npm install jsencrypt

问题描述

运行时,提示window未定义

解决一

点进去添加 window = this;

解决二

 


标签:

上一篇: JS 的同步异步 下一篇:
素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。