摘要:
index.html <div class="nav"> <ul> <li><a href="#">Java</a></li> <li><a href="#">C#</a></li> <li><a href="#">Python</a></li> <li><a href="#">Go</a>&l 阅读全文
摘要:
原因是开发时设置了不检查域名是否合法,去后台设置上就可以了 阅读全文
摘要:
页面增加一个按钮 <button type="default" open-type="getUserInfo" @click="getUserInfo">UserInfo</button> 前端解密 安装 crypto-js npm install crypto-js 下载 WXBizDataCry 阅读全文
摘要:
参考资料: 微信小程序官方文档 uniapp开发微信小程序获取用户手机号 页面增加一个按钮 <button open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">唤起授权</button> 前端解密 安装 crypto-js np 阅读全文
摘要:
.net 默认新建Api项目不需要额外从Nuget添加Microsoft.AspNetCore.Authentication.JwtBearer appsettings.json { "Logging": { "LogLevel": { "Default": "Information", "Micr 阅读全文
摘要:
1.临时使用 npm --registry https://registry.npm.taobao.org install 包名 2.永久设置为淘宝镜像 npm config set registry https://registry.npm.taobao.org 3.换回国外官方源 npm con 阅读全文
摘要:
uni.request方式登录abp关键代码如下,因abp获取token需要用formdata方式请求所以需要加上请求头 const baseUrl = 'http://127.0.0.1:44323'; uni.request({ url: baseUrl + '/connect/token', 阅读全文
摘要:
本地调试没有问题,发布后通过Token调用其他API时,出现返回JSON中提示:Authorization failed! Given policy has not granted. 需要修改appsettings.json,以下修改成发布后的域名或地址访问就可以了 { "App": { "Self 阅读全文
摘要:
最近学习uniapp中的scroll-view可实现商品分类点击左边右边联动效果,怕忘了记录一下 <template> <view class="detail"> <view class="left"> <!-- @click="setId(index1)点击设置当前索引为秒点 --> <scrol 阅读全文
摘要:
正常情况刷新后选中菜单会失去选中的状态,需要把default-active 当前激活菜单的 index保存下来这样刷新后读取 methods方法中增加 getSess() { this.active = window.sessionStorage.getItem("active"); }, setS 阅读全文