摘要: html: <div class="box" style="margin-top:0;" @click="share('weixin')">微信分享</div> <div class="box" style="margin-top:0;" @click="share('qq')">QQ分享</div 阅读全文
posted @ 2020-05-15 14:44 自律·给我自由 阅读(1094) 评论(0) 推荐(1) 编辑
摘要: html: <div class="box" style="margin-top:0;" @click="getLogin('weixin')">微信登录</div> <div class="box" style="margin-top:0;" @click="getLogin('qq')">QQ登 阅读全文
posted @ 2020-05-14 14:01 自律·给我自由 阅读(1431) 评论(0) 推荐(0) 编辑
摘要: mounted() { window.addEventListener('scroll', this.handleScroll, true); // 监听(绑定)滚轮滚动事件 this.getBookList();//请求数据 }, destroyed() { window.removeEventL 阅读全文
posted @ 2020-05-12 14:25 自律·给我自由 阅读(733) 评论(0) 推荐(0) 编辑
摘要: //优点:可以不依照顺序传参/* 不传参默认为空字符串,*/ function fun ({x='',y='',k='',j=''} = {}){ console.log(x,y,k,j) } fun({x:1,y:2}) 阅读全文
posted @ 2020-05-12 14:02 自律·给我自由 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: 有时候UI组件提供的默认的样式不能满足项目的需要,就需要我们对它的样式进行修改,但是发现加了scoped后修改的样式不起作用。 解决方法: 使用深度选择器,将scoped样式中的选择器“深入”,即影响子组件 <style scoped>.a >>> .b { /* ... */ }</style> 阅读全文
posted @ 2020-05-11 17:43 自律·给我自由 阅读(453) 评论(0) 推荐(0) 编辑
摘要: <video class="tvhou" width="100%" height="100%" controls="controls" autoplay="autoplay" x-webkit-airplay="true" x5-video-player-fullscreen="true" prel 阅读全文
posted @ 2020-04-29 10:39 自律·给我自由 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 展开 目录 1.准备环境 2.登录 iOS Dev Center 3.申请证书和描述文件之前需要先申请App ID和证书请求文件 4. 申请开发(Development)证书和描述文件(用户开发者开发和测试) 5. 申请发布(Distribution)证书和描述文件 6.使用Hbuilder X在线 阅读全文
posted @ 2020-04-17 13:55 自律·给我自由 阅读(1907) 评论(0) 推荐(1) 编辑
摘要: 引入Zepto之后控制台报错如下: TypeError: Cannot read property ‘createElement’ of undefined 原因: 只使用了 AMD 规范的模块导出方法 define,没有用 CommonJs 规范的方法 module.exports 来导出模块,不 阅读全文
posted @ 2020-04-16 11:18 自律·给我自由 阅读(3316) 评论(0) 推荐(0) 编辑
摘要: 在项目中发现,由于移动端无法看到打印的信息,所以很难进行调试,也不知道问题出在哪里,后来找到了一个好用的插件:vConsole。 1.安装 npm install vconsole 2、在main.js中引入 import Vconsole from 'vconsole'; let vConsole 阅读全文
posted @ 2020-04-14 12:01 自律·给我自由 阅读(9867) 评论(0) 推荐(0) 编辑
摘要: 首先打包你的 vue 项目 生成 dist 文件夹,教程请移步 https://www.cnblogs.com/taohuaya/p/10256670.html 看完上面的教程,请确保 你是 将: 项目目录下的config文件夹里的index.js文件中,将build对象下的assetsPublic 阅读全文
posted @ 2020-04-14 10:35 自律·给我自由 阅读(10541) 评论(3) 推荐(2) 编辑