bighw
7/21/2017 - 4:02 AM

js

js

//json 转字符串
var mallheader = {
    "userId":userId
}
var json = JSON.stringify(mallheader);

//base64 加解密
var base64str = btoa("hello");//加密
var str = atob(base64str);//解密