摘要: 官方文档:PC 公众号 小程序 APP 辅助工具:编码解码 PC 登录: 1.引进SDK <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> 2.内嵌二维码容器 <div id=" 阅读全文
posted @ 2020-12-03 18:25 动听小林 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 1.项目 (1)项目名:Project (2)文件夹:page (3)文件:pageIndex.vue 2.全局变量 (1)静态:this.WINDOW_WIDTH (2)动态:this.$windowWidth (3)方法:this.$windowWidth() (4)组件:<app-title> 阅读全文
posted @ 2020-09-30 14:26 动听小林 阅读(122) 评论(0) 推荐(0) 编辑
摘要: <a href="tel:020-00000000">拨打电话:020-00000000</a> <a href="mailto:10000@qq.com">发送邮件:10000@qq.com</a> <a href="sms:10086">发送短信:10086</a> <a href="#">置顶 阅读全文
posted @ 2020-09-28 17:45 动听小林 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1.安装 npm install eslint 2.初始化 eslint init 3.取消使用/* eslint-disable */ 4.恢复使用/* eslint-enable */ 5.局部使用规则:https://eslint.bootcss.com/docs/rules /* eslin 阅读全文
posted @ 2020-09-03 16:54 动听小林 阅读(368) 评论(0) 推荐(0) 编辑
摘要: /** main.js */ // 全局环境判断 使用this.ENV 0:浏览器 1:微信h5 2:微信小程序 3:安卓app const ua = window.navigator.userAgent.toLowerCase() if (ua.indexOf('micromessenger') 阅读全文
posted @ 2020-09-03 16:29 动听小林 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1.安装 Visual Studio Code 2.安装 Node 查看版本:node -v 3.安装 Git 查看版本:git --version 4.安装cli npm install -g @vue/cli 查看版本:vue -V 5.新建项目:vue create subject_name 阅读全文
posted @ 2020-07-09 17:08 动听小林 阅读(3181) 评论(0) 推荐(0) 编辑
摘要: // 缩进 text-indent: 6vw; 1.缩进 // 间距 letter-spacing: 1vw; 2.间距 // 单行溢出隐藏.. width: 10vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 阅读全文
posted @ 2020-07-08 14:56 动听小林 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 链接生成二维码 1.npm安装 npm install --save qrcodejs2 2.引入 import QRCode from 'qrcodejs2' 3.生成二维码 new QRCode('qrcode', { // 传入容器id text: url, // 链接(必填) width: 阅读全文
posted @ 2020-06-19 18:14 动听小林 阅读(810) 评论(1) 推荐(0) 编辑
摘要: 1.配置路由 meta: { keepAlive: true } 2.配置App.vue <keep-alive> <router-view v-if="$route.meta.keepAlive"></router-view> </keep-alive> <router-view v-if="!$ 阅读全文
posted @ 2020-06-16 13:48 动听小林 阅读(114) 评论(0) 推荐(0) 编辑