摘要:
小程序接口报错原因是:1、忘记写main.js里的url地址了 2、要么就是地址写错了 配置成功后,接口返回无权限:没获取token 阅读全文
摘要:
老师傅告诉我的笔记: 1、在小程序上使用click事件时,最好要使用click.stop,原因:因为在小程序里面,click会一层一层的找根元素有没有点击事件,就是冒泡,这样回比较浪费时间 阅读全文
摘要:
error: failed to push some refs to 'https://gitee.com/cd_code/xiuge_client.git'hint: Updates were rejected because the tip of your current branch is b 阅读全文
摘要:
// 获取商品推荐的列表数据 async recommend(id,index) { // 点击后传一个数组里的id过来,index 是下标 // 获取一级菜单滑块的数据 let opts = { url:'接口', method: '请求方式' } // 传参 let param = { use: 阅读全文
摘要:
git clone + 项目地址 拉取代码到本地 git branch -al 查看本地和远程的所有分支 如果想要拉到本地的某某分支上,首先使用:git checkout -b 分支名(切换分支命令),然后:git pull origin 分支名 阅读全文
摘要:
使用:git stash 再拉取代码:git pull 阅读全文
摘要:
//获取地址 selectLocation() { uni.getSetting({ success:(res)=> { uni.chooseLocation({ success: (res) => { console.log('地址信息:'+JSON.stringify(res)); this.i 阅读全文
摘要:
一般编写的正式环境或者测试环境都在api的config.js的文件中 阅读全文
摘要:
当没有内外边距时,两个元素不在同一水平线上,可使用 vertical-align:middle;(可能两个元素都需要使用) display: inline-flex; flex-direction: column; /*元素的排列方向为垂直*/ justify-content: center; /* 阅读全文
摘要:
提交代码时,报: $ git pushfatal: The current branch business has no upstream branch.To push the current branch and set the remote as upstream, use git push - 阅读全文