摘要: 删除 node_modules操作 1.安装npm包–rimraf npm install rimraf -g 2.在cmd指令下,进入所需删除的node_modules文件夹的位置,再输入指令 rimraf node_modules window.open(location.origin + lo 阅读全文
posted @ 2021-11-04 15:53 风雪中de冲破 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在页面上 http-request: 覆盖默认的上传行为,可以自定义上传的实现 <el-upload class="avatar-uploader" action="" :show-file-list="false" :on-success="handleAvatarSuccess" :http-r 阅读全文
posted @ 2020-12-15 14:52 风雪中de冲破 阅读(793) 评论(0) 推荐(0) 编辑
摘要: uniapp 1.点击手机左上角的返回 1.点击手机左上角的返回 用 onUnload 去监听 onUnload(() => { const isScan = uni.getStorageSync('wxScans') clearInterval(state.timeQuestions) state 阅读全文
posted @ 2024-08-15 16:49 风雪中de冲破 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //注释 一进入页面就获取全部数据,然后将数据剪切成显示n个 :itemSize="88" 代表默认是每一个列表高度都是88px 最后的结果 永远只会显示对应的几个dom数据列表 1. 创建一个index.vue <template> <view class="wrap"> <view class= 阅读全文
posted @ 2024-07-11 14:48 风雪中de冲破 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 下面是vue3的写法 如果想查看vue2的写法 请移步至github链接 https://github.com/Arvin-Cui/vue-virtual-scroll/blob/master/pages/index/index.vue1.index.vue index.vue页面中加一个共用组件V 阅读全文
posted @ 2024-06-20 14:12 风雪中de冲破 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1. up-popup 弹窗后 禁止底层的页面继续滚动 直接在 u-popup 包一个 view 然后 加上一个方法 @touchmove.stop.prevent="prevent" 然后在方法 prevent 加一个空方法就行了 代码如下: <view class="my" @touchmove 阅读全文
posted @ 2024-06-13 09:57 风雪中de冲破 阅读(3) 评论(0) 推荐(0) 编辑
摘要: // 请求接口部分(做了axios的封装)export function exportExcel(data) { return request({ url:'xxxx', method:'get', responseType: 'blob', // 最主要是加上这个返回值的接收类型 })} // 点 阅读全文
posted @ 2024-05-09 15:25 风雪中de冲破 阅读(24) 评论(0) 推荐(0) 编辑
摘要: vue安装node-sass sass-loader 报错 主要的原因是因为 node的版本 和 node-sass sass-loader 不匹配导致的报错 node-sass版本和sass-loader版本对应 具体查看这个链接 https://www.npmjs.com/package/nod 阅读全文
posted @ 2024-01-29 17:28 风雪中de冲破 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Element ui table 代码 <el-table header-align="center" v-loadmore="addData" :data="myData" height="300" v-loading="loading" style="width: 100%" class="el 阅读全文
posted @ 2024-01-26 14:54 风雪中de冲破 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 1.点击Vscode的设置=>工作区=>文本编辑器 阅读全文
posted @ 2023-12-28 09:24 风雪中de冲破 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <iframe ref="iframe" class="iframe" frameborder="no"></iframe> </div> </template> <script> import { get_doctor_info, sta 阅读全文
posted @ 2023-09-12 16:07 风雪中de冲破 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 拖拽列表效果图: 1. 安装 yarn add vuedraggable 或者 npm install vuedraggable2.新建文件夹 tagManage.vue代码如下: <template> <div class="home"> <div class="drag-wrap"> <drag 阅读全文
posted @ 2023-08-01 16:21 风雪中de冲破 阅读(464) 评论(0) 推荐(1) 编辑