Giter Site home page Giter Site logo

Comments (6)

aliothor avatar aliothor commented on August 20, 2024 2
import JSEncrypt from 'jsencrypt/lib/index.js'
const crypt = new JSEncrypt.default()

在node中使用可以这样用

from jsencrypt.

airwin avatar airwin commented on August 20, 2024 1

降为3.2.1;在首行加上global.window = this试试

加 global.window = this 可用

from jsencrypt.

zhumenglonge avatar zhumenglonge commented on August 20, 2024

降为3.2.1;在首行加上global.window = this试试

from jsencrypt.

lanzhsh avatar lanzhsh commented on August 20, 2024

这种线上打包 还要手动更改node_modules 包, 太不友好了

from jsencrypt.

yantx avatar yantx commented on August 20, 2024

今天也遇到了这个问题mock模拟数据时使用了jsencrypt加密出现的版本3.3.2
引入方式:

 import JSEncrypt from 'jsencrypt/bin/jsencrypt.min'
 let decrypt = new JSEncrypt()

解决方式:在jsencrypt.min.js文件中添加如下代码

const window=this

from jsencrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.