咏竹莉
where there is a will,there is a way
posts - 132,comments - 1,views - 66816
11 2021 档案
vue 公共组件封装(slot 插槽使用)
摘要:使用场景: 公共组件: <template> <div class="title-box"> <div class="title"> <span>{{title}}</span> <slot name="right"></slot> </div> <span class="square"></spa 阅读全文
posted @ 2021-11-30 17:31 咏竹莉 阅读(592) 评论(0) 推荐(0) 编辑
input 实时触发
摘要:1. input 原生实时触发事件: <input type="text" oninput="myFunction()"> 2. vue中的@input 事件 <el-input class="search" size="small" placeholder="搜索分组名称" prefix-icon 阅读全文
posted @ 2021-11-29 10:27 咏竹莉 阅读(271) 评论(0) 推荐(0) 编辑
如何在onclick事件中传递对象参数?
摘要:1. 普通的onclick传递对象 var user = {id:1, name:'zs', age:20}; var ele = '<a οnclick="edit(' + JSON.stringify(user).replace(/"/g, '&quot;') + ');">修改</a>'; 或 阅读全文
posted @ 2021-11-17 09:25 咏竹莉 阅读(4903) 评论(0) 推荐(1) 编辑
vue 绑定值与字符串拼接
摘要:有两种方式: 第一种 :title="`字符串${xx}`" 第二种 :title="'字符串' + xx" 阅读全文
posted @ 2021-11-04 11:40 咏竹莉 阅读(250) 评论(0) 推荐(0) 编辑
关于vue的img标签绑定的src的路径找不到的问题
摘要:路径使用require@ icon: new AMap.Icon({ image: item.rtuStatus == 1 ? require("@/assets/images/online.png") : require("@/assets/images/offline.png"), // ima 阅读全文
posted @ 2021-11-03 15:52 咏竹莉 阅读(212) 评论(0) 推荐(0) 编辑
安卓本地加载h5 图片不显示
摘要:背景: 1. 做智慧建筑屏,要求把h5页面放到安卓本地加载,于是打包给安卓,加载图片不显示,想了想应该是本地包找不到图片路径 解决方法: 在vue.config.js 中 , 注释以下内容 .options({ limit: 10240, /**/ // 以下配置项用于配置file-loader / 阅读全文
posted @ 2021-11-01 14:05 咏竹莉 阅读(657) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示