摘要:        
node 常用方法 生成密钥 token验证 验证码生成 生成密钥 //生成密钥 generateToken(data, expires = 7200) { const exp = Math.floor(Date.now() / 1000) + expires const cert = fs.rea    阅读全文
posted @ 2021-01-22 16:35
冯叶青
阅读(1098)
评论(0)
推荐(0)
        
            
        
        
摘要:        
middleware/jwt.js module.exports = (options, app) => { return async function userInterceptor(ctx, next) { //获取token 获取前端或以其他方式设置的cookie需要设置signed: fal    阅读全文
posted @ 2021-01-22 16:28
冯叶青
阅读(412)
评论(0)
推荐(1)
        
            
        
        
摘要:        
js给页面容器增加水印 /* * 功能:给页面容器增加水印 * * 用法 watermark({ watermark_ele:'#industry-contacts', watermark_txt:`AI固收 ${this.sysUserInfo.phone}`, watermark_width:     阅读全文
posted @ 2021-01-22 15:47
冯叶青
阅读(170)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号