04 2021 档案

摘要:hml: <van-datetime-picker show-toolbar type="date" v-model="wTime[i].beginTime" :min-date="minDate" :max-date="maxDate" @confirm="onWTimeConfirm($even 阅读全文
posted @ 2021-04-23 15:16 祭·司 阅读(3046) 评论(0) 推荐(0)
摘要:1,vue中安装wangEditor 使用的npm安装 npm install wangeditor --save 2,创建公用组件 在components中创建wangEditor文件夹 组件内容为 <template lang="html"> <div class="editor"> <div 阅读全文
posted @ 2021-04-14 15:00 祭·司 阅读(501) 评论(0) 推荐(0)
摘要:在做图标展示时,一般使用fontawesome图标库,只用简单并且只需要下载并引入即可。npm install font-awesome --save 但是发现身边也有人使用阿里巴巴的incofont,下载选择svg文件引入,具体封装和配置方法如下示: 以下操作是参考了已有框架的代码进行整理 1、在 阅读全文
posted @ 2021-04-12 10:13 祭·司 阅读(2275) 评论(0) 推荐(0)
摘要:一、div内显示一行,超出部分用省略号显示 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 二、div内显示N行,超出部分用省略号显示 overflow: hidden; text-overflow: ellipsis; 阅读全文
posted @ 2021-04-08 09:29 祭·司 阅读(979) 评论(0) 推荐(1)
摘要:无刷新改变路由的两种方法 通过hash改变路由 代码: window.location.hash='edit' 效果: http://xxxx/#edit 通过history改变路由 history.back(): 返回浏览器会话历史中的上一页,跟浏览器的回退按钮功能相同 history.forwa 阅读全文
posted @ 2021-04-06 10:46 祭·司 阅读(2470) 评论(0) 推荐(0)