LSG122800

博客园 首页 新随笔 联系 订阅 管理

2020年9月15日 #

摘要: 下载 npm i nprogress 在main.js中引入: import App from './App' import VueRouter from 'vue-router' import router from './router' //你的路由文件 //引入nprogress import 阅读全文
posted @ 2020-09-15 17:26 12345zxc 阅读(422) 评论(0) 推荐(0) 编辑

摘要: 原因: 使用element-ui 导致 使用路由模式之后 index 没写 导致 解决办法: 删掉 或者天添加路由 阅读全文
posted @ 2020-09-15 16:32 12345zxc 阅读(1770) 评论(0) 推荐(0) 编辑

2020年9月10日 #

摘要: https://blog.csdn.net/weixin_46034375/article/details/108476718 阅读全文
posted @ 2020-09-10 16:16 12345zxc 阅读(363) 评论(0) 推荐(0) 编辑

摘要: https://blog.csdn.net/weixin_46034375/article/details/108514832 阅读全文
posted @ 2020-09-10 16:12 12345zxc 阅读(138) 评论(0) 推荐(0) 编辑

2020年9月8日 #

摘要: https://blog.csdn.net/weixin_46034375/article/details/108476433 官网解释: 下面用两个例子来深入理解ref和refs: 一、ref作用于组件 <div id="app"> <navbar ref="navbar"></navbar> < 阅读全文
posted @ 2020-09-08 20:35 12345zxc 阅读(306) 评论(0) 推荐(0) 编辑

摘要: 在我的CSDN上有详细讲解: 🔗 https://blog.csdn.net/weixin_46034375/article/details/108476137 阅读全文
posted @ 2020-09-08 20:15 12345zxc 阅读(213) 评论(0) 推荐(0) 编辑

2020年9月7日 #

摘要: PageModel(页面模型)对小程序而言是很重要的一个概念,从app.json中也可以看到,小程序就是由一个个页面组成的。 如上图,这是一个常见结构的小程序:首页是一个双Tab框架PageA和PageB,子页面pageB, PageC。 让我们假设这样一个场景:首页PageA有一个飘数,当我们从P 阅读全文
posted @ 2020-09-07 19:07 12345zxc 阅读(523) 评论(0) 推荐(0) 编辑

2020年8月22日 #

摘要: 页面生命周期 Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { } 阅读全文
posted @ 2020-08-22 11:38 12345zxc 阅读(337) 评论(0) 推荐(0) 编辑

2020年8月14日 #

摘要: 效果: wxml: <!-- 点击回顶部 --> <image src='/images/top.jpg' class='goTop' hidden='{{showTop}}' bindtap='goTop'></image> wxss: .goTop{position: fixed;bottom: 阅读全文
posted @ 2020-08-14 19:21 12345zxc 阅读(620) 评论(0) 推荐(0) 编辑

摘要: 官网地址: go官网 效果展示: list: [ 'http://img5.imgtn.bdimg.com/it/u=3300305952,1328708913&fm=26&gp=0.jpg', 'http://img.52z.com/upload/news/image/20180312/20180 阅读全文
posted @ 2020-08-14 16:29 12345zxc 阅读(437) 评论(0) 推荐(0) 编辑