Skip to content

youngjuning/wxBase64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxBase64

引入

node.js

let Base64 = require('js-base64').Base64

es6+

import {Base64} from '/utils/base64.min.js'

使用

Base64.encode('youngjuning');  // eW91bmdqdW5pbmc=
Base64.encode('杨俊宁');    // 5p2o5L+K5a6B
Base64.encodeURI('杨俊宁'); // 5bCP6aO85by-

Base64.decode('eW91bmdqdW5pbmc=');  // youngjuning
Base64.decode('5p2o5L+K5a6B');  // 杨俊宁
// note .decodeURI() is unnecessary since it accepts both flavors
Base64.decode('5bCP6aO85by-');  // 杨俊宁

感谢

感谢 dankogai GitHub followers 开发了 js-base64 GitHub stars

About

🏗️在小程序中使用 js-base64 库

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published