每篇文章仅做为自己的备忘笔记,若有描述不清或不对的地方还请指明,感谢^_^
摘要: 另一篇比较完善 uni封装request请求 /** * requestPromise用于将wx.request改写成Promise方式 * @param:{string} myUrl 接口地址 * @return: Promise实例对象 */ /** 核心:接口文件 */ var apiUrlL 阅读全文
posted @ 2020-05-22 17:36 菜汤不甜 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 自己常用的css样式 阅读全文
posted @ 2020-05-22 17:14 菜汤不甜 阅读(548) 评论(0) 推荐(0) 编辑
摘要: // 验证手机号码 export function isMobile(s) { return /^1[0-9]{10}$/.test(s) } 验证手机号码 // 验证邮箱 export function isEmail(email) { return /^([a-zA-Z0-9]+[_|\_|\. 阅读全文
posted @ 2020-05-22 16:35 菜汤不甜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 互交反馈 export function myAlert(e,text,icon,mask){ if(!icon){icon="none"} switch (e) { case 0: uni.showToast({//消息提示框。 title:text, mask:mask, icon:icon, 阅读全文
posted @ 2020-05-22 16:31 菜汤不甜 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、封装Api 列表 (文件名:apiUrlList.js) var apiUrlList = { service: "https://www.cnblogs.com/", //服务器 picUrl:'/static/images/',//图片地址 "upPic": { url: "/api/fil 阅读全文
posted @ 2020-05-22 16:06 菜汤不甜 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 1、封装Api 列表 (文件名:apiUrlList.js) var apiUrlList = { service: "https://www.cnblogs.com/", //服务器 picUrl:'/static/images/',//图片地址 "loginAPI": { url: "/clie 阅读全文
posted @ 2020-05-22 15:13 菜汤不甜 阅读(2201) 评论(0) 推荐(0) 编辑
摘要: 生命周期分两种 1、小程序的 生命周期 2、小程序页面的 生命周期 1、小程序的 生命周期 祭献文档地址:https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html 示例代码: //app.js App({ onLa 阅读全文
posted @ 2019-12-05 16:46 菜汤不甜 阅读(235) 评论(0) 推荐(0) 编辑
摘要: https://www.bilibili.com/video/av58993009?p=4 GitHub的使用方式在网上已经很多了,随手记录下,防失忆… git被墙解决办法:git config --global url."https://".insteadOf git: 下载代码:git clon 阅读全文
posted @ 2019-12-05 13:31 菜汤不甜 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 页面路由,以及传值 阅读全文
posted @ 2019-12-04 17:03 菜汤不甜 阅读(308) 评论(0) 推荐(0) 编辑
摘要: WXS 模块 阅读全文
posted @ 2019-12-02 14:51 菜汤不甜 阅读(374) 评论(0) 推荐(0) 编辑