摘要: 由于uni.setClipboardData不支持H5,所以使用vue-clipboard2复制文本 步骤如下: 1.安装插件 npm install --save vue-clipboard2 2.在 main.js 中挂载插件 import Vue from 'vue' import VueCl 阅读全文
posted @ 2021-04-22 16:45 阿杰啊啊 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 给一个单独的页面隐藏顶部导航栏可以在page.json里,配置style:"app-plus": {"titleNView": false} ,也可以全局隐藏 阅读全文
posted @ 2021-04-22 16:34 阿杰啊啊 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 由于小程序的宽度是固定的 750rpx,我们可以先用 wx.getSystemInfo 来获取可使用窗口的宽高(并非rpx),结合750rpx的宽度算出比例,再用比例来算出高度let that = this; // 获取系统信息 wx.getSystemInfo({ success: functio 阅读全文
posted @ 2021-04-22 16:28 阿杰啊啊 阅读(354) 评论(0) 推荐(0) 编辑
摘要: module.exports = { publicPath:'/manager_cjl', //将所有文件打包在manager_cjl下 outputDir:'dist', //指定打包后的目录 assetsDir:"static", //css、img、js、font等资源 //webpack配置 阅读全文
posted @ 2021-04-15 18:16 阿杰啊啊 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: public目录下的index.html原配置,icon图标不显示,netWork也不加载favicon.ico 解决方法:将上面圈住的内容加上/,如下即可<link rel="icon" href="<%= BASE_URL %>/favicon.ico"> 阅读全文
posted @ 2021-04-15 18:13 阿杰啊啊 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 在vue-cli3中,存放静态资源的位置已经变成存放在public文件夹中了,不是在static中了 阅读全文
posted @ 2021-04-15 18:11 阿杰啊啊 阅读(2230) 评论(0) 推荐(0) 编辑
摘要: vue-cli2 proxyTable: { // proxy all requests starting with /api to jsonplaceholder '/api': { target: 'http://localhost:1337', //目标服务器,注意要到端口号 changeOr 阅读全文
posted @ 2021-04-15 18:10 阿杰啊啊 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 1.父传子props 2.子传父emit 3.vuex 阅读全文
posted @ 2021-04-15 16:41 阿杰啊啊 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.params方法 a页面 this.$router.push({path:`/addressEdit/${item.id}`}) b页面接收: created(){ console.log(this.$route.params.id) } 2. query方法 a页面 this.$router. 阅读全文
posted @ 2021-04-15 16:39 阿杰啊啊 阅读(209) 评论(0) 推荐(0) 编辑
摘要: ## git使用 1、设置name和email 最好是GitHub的用户名和邮件 git config --global user.name "yourname" git config --global user.email "youremail"2、将文件添加到暂存区:git add index. 阅读全文
posted @ 2021-04-15 16:33 阿杰啊啊 阅读(55) 评论(0) 推荐(0) 编辑