npm install --save base-64
在react中中引入依賴
import Base64 from 'base-64';
使用
Base64.encode(this.pwd);//加密 Base64.decode(this.pwd);//解密
npm install --save base-64
在react中中引入依賴
import Base64 from 'base-64';
使用
Base64.encode(this.pwd);//加密 Base64.decode(this.pwd);//解密
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。