如果不想写的话,直接拿我这个用吧https://github.com/equicy/weapp-jwt-decode
微信小程序怎么解析后台传过来的jwt格式字符串来获取用户id微信小程序授权以后,后台返回一个jwt格式的字符串(eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlIjoiam9obmRvZUBtYWlsLmNvbSIsImV4cCI6MTU0MDQ1Mjk1MiwiaWQiOjEsInIiOjEsInUiOiJhZG1pbiJ9.Bdc_INbe9McPMT8cJ5Bn8YMbqGoULUmohIqS57leSOE),小程序端怎么解析成json格式的数据啊
2020-11-12如果不想写的话,直接拿我这个用吧https://github.com/equicy/weapp-jwt-decode
微信小程序怎么解码jwt?微信小程序里面获取到的jwt可以在小程序里面不调用接口进行解码吗?
2020-11-12[图片]
npm构建错误,未找到npm包入口- 当前 Bug 的表现(可附上截图) 1 - 预期表现 2 - 复现路径 3 - 提供一个最简复现 Demo 4 [图片]
2020-04-10感谢大佬的纠正, projectPath一定要配置对
miniprogram-ci 执行预览命令时 报错?const ci = require('miniprogram-ci'); (async () => { const project = new ci.Project({ appid: 'xxxx', type: 'miniProgram', projectPath: 'xxxx', privateKeyPath: 'xxx', ignores: ['node_modules/**/*'], }) await ci.upload({ project, version: '1.2.1', desc: 'hello', setting: { es6: true, }, onProgressUpdate: console.log, }) })() ["tabBar"]["list"][0]["iconPath"]: "static/image/home.png" not found 去掉tabBar中的图片就不会报错,并且 在微信开发者工具中上传和预览都不会有这种问题
2020-03-19this.setDate,不支持数组下标为变量。 解决办法 例如 a = [{id:1},{id:2}],改变第二个对象的值,假设下标变量为index = 1 this.setData({ [`a[${index}]`]: 3 })
这里的condirm点击后报错: Only digits (0-9) can?[图片] 这里的condirm点击后报错: Only digits (0-9) can be put inside [] in the path string: today[undefined].hiddenbutton; [Component] Event Handler Error @ pages/alarm/alarm#bound confirm0 Error: Only digits (0-9) can be put inside [] in the path string: today[undefined].hiddenbutton
2020-02-20this.setDate,不支持数组下标为变量。 解决办法 例如 a = [{id:1},{id:2}],改变第二个对象的值,假设下标变量为index = 1 this.setData({ [`a[${index}]`]: 3 })
报错求解释。。Only digits (0-9) can be put inside [] in the path string 究竟为什么会有这种报错。。
2020-02-20