/**
* [Base64加密解密]
* @encode 加密
* @decode 解密
*/
export const Base64 = {
encode(str) {
// first we use encodeURIComponent to get percent-encoded UTF-8,
// then
Node.js 连接 MySQL
安装驱动
$ npm install mysql
常用mysql语句
// 查询表websites中所有内容(select后面的*代表输出所有字段,可设置需要显示的字段,逗号分隔)
'SELECT * FROM websites';
// 添加数据(id可以不填,默认自增长)
'INSERT INT