会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fm060
博客园
首页
新随笔
联系
订阅
管理
2021年9月2日
vue多个项目共用node_modues
摘要: 1.使用软链复制根目录的node_modues文件到项目:mklink /j E:\xxx\项目名称\node_modules E:\node_modules 2.运行时如果有报错 Error: No PostCSS Config found in... 可修改配置文件build目录下:webpac
阅读全文
posted @ 2021-09-02 00:34 fm060
阅读(1023)
评论(0)
推荐(0)
2021年6月8日
vue3特点
摘要: 1.节点打Tag,更新页面,直接定位到动态节点会跳过静态的div,节省效率 2.事件开缓存,是否对事件进行缓存,缓存后页面更新就不重新生成监听 3.响应式Proxy,双像绑定原理的调整--vue2,响应化过程需要遍历data.props等,不支付Set/Map class,数组等类型,新加的属性无法
阅读全文
posted @ 2021-06-08 00:20 fm060
阅读(286)
评论(0)
推荐(0)
2021年2月28日
node的api接口加表单校验
摘要: 1.准备好校验规则 //1.非空 2.只能是数字 3.手机号 4.长度 const ajv = { 'required':function(v,vail){ if(!v||Array.isArray(v)||!v.length){ return vail.title+'不能为空' } }, 'mob
阅读全文
posted @ 2021-02-28 22:22 fm060
阅读(161)
评论(0)
推荐(0)
2021年2月27日
node权限管理(jsonwebtoken)
摘要: 1.生成token返回前端保存 const jwt = require('jsonwebtoken') const cert = fs.readFileSync('./key.key') let payload = { user: '', admin:2,//1普通用户,2管理员 time: ''
阅读全文
posted @ 2021-02-27 21:32 fm060
阅读(499)
评论(0)
推荐(0)
2020年11月20日
微信小程序-跳转
摘要: 1.小程序跳转到另一个小程序(同一主体) wx.navigateBackMiniProgram({ appId: '', path: '/pages/index/index', envVersion: 'trial', extraData: { openId: '123' // 需要传递给目标小程序
阅读全文
posted @ 2020-11-20 00:58 fm060
阅读(185)
评论(0)
推荐(0)
2020年9月13日
nginx-https接口
摘要: server { listen 443 ssl; server_name www.xxx.com xxx.com; root html/hengyueh; index index.html index.htm; ssl_certificate name.pem; #将domain name.pem替
阅读全文
posted @ 2020-09-13 22:28 fm060
阅读(180)
评论(0)
推荐(0)
2020年9月5日
接口返回报文格式
摘要: #返回状态码 200:请求成功203:登录过期,请重新登录204:请求失败 #列表返回报文 let res = { code: 200, data: { list: [], pagination:{ current_page:1,//当前页 page_count:10,//每页条数 total:10
阅读全文
posted @ 2020-09-05 00:46 fm060
阅读(1323)
评论(0)
推荐(0)
2020年9月4日
node-微信小程序(微信支付)
摘要: #支付条件 1.微信公众号-申请支付 (https://mp.weixin.qq.com) 2.微信商户平台-申请支付(https://pay.weixin.qq.com) #支付参数 var appid = 'wxxxxxxxxxxxxxxxxxx'; //微信公众号appid var mchid
阅读全文
posted @ 2020-09-04 23:35 fm060
阅读(1092)
评论(0)
推荐(0)
node-支付宝支付
摘要: #支付条件 1.支付宝平台-申请支付 #支付参数 const alipaySdk = new AlipaySdk({ appId: '202xxxxx', gateway: 'https://openapi.alipay.com/gateway.do', privateKey: 'xxx', ali
阅读全文
posted @ 2020-09-04 23:30 fm060
阅读(629)
评论(0)
推荐(0)
node-微信h5支付功能
摘要: #支付条件 1.微信公众号-申请支付 (https://mp.weixin.qq.com) 2.微信商户平台-申请支付(https://pay.weixin.qq.com) #支付参数 var appid = 'wxxxxxxxxxxxxxxxxxx'; //微信公众号appid var mchid
阅读全文
posted @ 2020-09-04 22:07 fm060
阅读(761)
评论(0)
推荐(0)
下一页
公告