摘要: vue3开发者工具安装 https://chrome.zzzmh.cn/#/index 至今还存在的问题: 1:watch监视对象时无法访问到oldval 2:watch监视器默认强制开启深度监视,deep:false无效 3:监视单个属性时watch需要写成函数并有返回值watch(()=>peo 阅读全文
posted @ 2022-08-07 21:23 一个大不刘blog 阅读(181) 评论(0) 推荐(0) 编辑
摘要: // 封装请求模块 const Promise = require('./Promise.js'); const baseUrl = 'http://127.0.0.1:8080/'; function request(method, url, data) { return new Promise( 阅读全文
posted @ 2022-08-07 21:14 一个大不刘blog 阅读(158) 评论(0) 推荐(0) 编辑
摘要: // 在css内书写 word-break:break-all; 阅读全文
posted @ 2022-08-07 21:13 一个大不刘blog 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 前端实现 goLogin() { wx.getUserProfile({ desc: '获取你的昵称、头像', // 如果获得授权,发起请求,向服务器提交code success: ress => { wx.login({ timeout: 5000, success(res) { if (res. 阅读全文
posted @ 2022-08-07 21:12 一个大不刘blog 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 1:使用wx.setStorage()向本能存储里面存储要传递的数据 2:借用app对象传递全局参数 // 1.在app.js中定义要传递的全局参数 App({ globalData: { userInfo:{} } }) // 2.在login页面success返回中设置 const 阅读全文
posted @ 2022-08-07 21:11 一个大不刘blog 阅读(841) 评论(1) 推荐(1) 编辑
摘要: 安装 npm install vue-touch@next -S main.js引入 1、import VueTouch from 'vue-touch' 2、Vue.use(VueTouch, {name: 'v-touch'}) // 组件内 <template> <v-touch v-on:s 阅读全文
posted @ 2022-08-07 21:10 一个大不刘blog 阅读(3256) 评论(0) 推荐(0) 编辑
摘要: 在中间添加文字 option:{ title: { // 图形标题(如果想要换行则使用ES6 `` 模板字符串) // 例如: `示例 // 这里的文字会变为第二行(因为会保留格式) // ` text: '文字', left: "center",//对齐方式居中 top: "45%",//距离顶部 阅读全文
posted @ 2022-08-07 21:08 一个大不刘blog 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 导入: npm install --save vue-pdf <pdf v-for="i in numPages" :key="i" :src="src" :page="i" style="display: inline-block; width: 50%" ></pdf> date中: data( 阅读全文
posted @ 2022-08-07 21:07 一个大不刘blog 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1、安装vue-video-player npm install vue-video-player --save 2、在main.js中引入vue-video-player import VideoPlayer from 'vue-video-player' require('video.js/di 阅读全文
posted @ 2022-08-07 21:06 一个大不刘blog 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 项目打包后,代码都是经过压缩加密的,如果运行时报错,输出的错误信息无法准确得知是哪里的代码报错 有了map 就可以像未加密的代码一样,准确的输出是哪一行哪一列有错。 所以该文件如果项目不需要是可以去除掉 vue.config.js 配置 productionSourceMap:false 路由懒加载 阅读全文
posted @ 2022-08-07 21:05 一个大不刘blog 阅读(1727) 评论(0) 推荐(0) 编辑