会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
动听小林
博客园
首页
新随笔
联系
订阅
管理
2020年12月3日
微信授权实现跨平台(PC+公众号+小程序+APP)登录(unionid+手机号)
摘要: 官方文档: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 动听小林
阅读(1206)
评论(0)
推荐(0)
2020年9月30日
前端命名空间规范..(持续更新9.30)
摘要: 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 动听小林
阅读(132)
评论(0)
推荐(0)
2020年9月28日
html a标签 打开链接 拨打电话 发送短信 发送邮件
摘要: <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 动听小林
阅读(440)
评论(0)
推荐(0)
2020年9月3日
ESLint 代码检测开关+局部检测
摘要: 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 动听小林
阅读(380)
评论(0)
推荐(0)
vue 定义全局运行环境判断+返回键(支持安卓)
摘要: /** 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 动听小林
阅读(489)
评论(0)
推荐(0)
2020年7月9日
vue 运行环境安装与配置
摘要: 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 动听小林
阅读(3243)
评论(0)
推荐(0)
2020年7月8日
css 文本缩进+间距+溢出
摘要: // 缩进 text-indent: 6vw; 1.缩进 // 间距 letter-spacing: 1vw; 2.间距 // 单行溢出隐藏.. width: 10vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
阅读全文
posted @ 2020-07-08 14:56 动听小林
阅读(250)
评论(0)
推荐(0)
2020年6月19日
vue 生成二维码+截图
摘要: 链接生成二维码 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 动听小林
阅读(836)
评论(1)
推荐(0)
2020年6月16日
vue 缓存界面
摘要: 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 动听小林
阅读(121)
评论(0)
推荐(0)
公告