摘要: 1.在GitHub或码云上新建仓库,在新建个目录新建“本地仓库”文件夹,git init生成一个.git文件夹, 2.在“本地仓库”目录下将新建的远程仓库clone下来(为了同步README.md),再将自己的项目放进来和README.md同级的目录下git clone https://gitee. 阅读全文
posted @ 2021-04-15 16:31 阿杰啊啊 阅读(597) 评论(0) 推荐(0)
摘要: 1、在app.json里添加 "navigateToMiniProgramAppIdList": [ "目标小程序的appid" ]} 2、在使用的页面里添加wx.navigateToMiniProgram({ appId: '目标小程序的appid', path: '', envVersion: 阅读全文
posted @ 2021-04-15 16:23 阿杰啊啊 阅读(180) 评论(0) 推荐(0)
摘要: 步骤: 1.在app.js页面登录时候获取code,传给后端去请求openid,返回给前端存到全局变量里;2.做一个点击“接收消息通知”的按钮,一当用户点击按钮时就将其openid传给后端存起来;3.服务器定时,比如每天18:00,去查找openid表里面的openid,遍历给这些openid发送消 阅读全文
posted @ 2021-04-15 16:21 阿杰啊啊 阅读(191) 评论(0) 推荐(0)
摘要: 方法一: request.js export const baseUrl = ""; export default function request(options){ return new Promise((resolve,reject)=>{ wx.request({ async:false, 阅读全文
posted @ 2021-04-15 16:13 阿杰啊啊 阅读(158) 评论(0) 推荐(0)
摘要: 一、获取access_token wx.request({ url: 'https://api.weixin.qq.com/cgi-bin/token', method : 'GET', data : { grant_type: 'client_credential', appid: '小程序的ap 阅读全文
posted @ 2021-04-15 16:11 阿杰啊啊 阅读(248) 评论(0) 推荐(0)
摘要: (1)路由跳转以及事件监听1.wx.navigateTo1)保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面,左上角有返回上一页按钮2)会触发当前页面的onHide()2.wx.redirectTo1)关闭当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面,左上 阅读全文
posted @ 2021-04-15 16:07 阿杰啊啊 阅读(1307) 评论(0) 推荐(0)
摘要: 1、 解析链接时会因为带空格解析不到,需要去空格 1)、去掉所有空格 str=str.replace(/\s+/g,""); 2)、去掉两头空格 str=str.replace(/^\s+|\s+$/g,"");//js去掉两头空格 3)、去做空格 str=str.replace( /^\s*/, 阅读全文
posted @ 2021-04-15 16:06 阿杰啊啊 阅读(89) 评论(0) 推荐(0)