会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
zwh2020
博客园
首页
新随笔
联系
订阅
管理
2024年6月14日
文字设置空格或换行
摘要: 一、空格: //使用   (占中文字符一半的大小) <view> <text decode="true">姓  名</text> </view> //使用   (占中文字符的大小) <view> <text decode="true">姓 &emsp
阅读全文
posted @ 2024-06-14 18:19 周文豪
阅读(3)
评论(0)
推荐(0)
编辑
2024年6月5日
validate方法进行表单异步校验时,回调函数内部避免使用全局变量
摘要: 对整个表单进行校验的方法,参数为一个回调函数。该回调函数会在校验结束后被调用,并传入两个参数:是否校验成功和未通过校验的字段。若不传入回调函数,则会返回一个 promise 问题代码: save(){ console.log(that.pos.indexName) console.log(that.
阅读全文
posted @ 2024-06-05 17:28 周文豪
阅读(4)
评论(0)
推荐(0)
编辑
Vue 前端根据list下载 Excel 文件
摘要: 当前端已经有list时,此时下载就不需要再从后台获取数据,而是根据前端的list集合直接下载。 步骤如下: 1、安装依赖 npm install -S file-saver(生产依赖,则为-s) npm install -S xlsx npm install -D script-loader (开发
阅读全文
posted @ 2024-06-05 10:53 周文豪
阅读(4)
评论(0)
推荐(0)
编辑
2024年6月4日
element 输入框(input)点击清空(clearable)的触发事件
摘要: element官网中的input输入框的事件如下: 代码: <el-input placeholder="请输入名称" class="input-select" v-model="listQuery.name" @keyup.enter.native="filterByName" @clear="f
阅读全文
posted @ 2024-06-04 14:54 周文豪
阅读(5)
评论(0)
推荐(0)
编辑
2024年6月3日
svg图片放img标签报错解决办法
摘要: 错误代码: <div v-if="item.showType == '2'" :id="'tag'+index" class="tag-icon-text" @click="tagClick(item)"> <img src="@/assets/images/flag.jpg" class="img
阅读全文
posted @ 2024-06-03 11:00 周文豪
阅读(7)
评论(0)
推荐(0)
编辑
2024年5月28日
滚动条插件vue-scroll
摘要: 一、介绍 vuescroll 是一个基于 vue.js 2.X虚拟滚动条, 它支持定制滚动条的样式,检测内容尺寸变化、能够使内容分页、支持上拉-刷新,下推加载等诸多特性 二、特点 (1)拥有原生滚动条的滚动行为(2)可以定制滚动条的样式(包括颜色、尺寸、位置、透明度、是否保持显示等)(3)在模式之间
阅读全文
posted @ 2024-05-28 11:55 周文豪
阅读(117)
评论(0)
推荐(0)
编辑
2024年5月25日
java使用网络爬虫webmagic爬取DataV atlas中省市区县的经纬度
摘要: a56爆大奖在线娱乐们从阿里云的数字可视化平台获取数据 http://datav.aliyun.com/tools/atlas 爬取的链接如下: 湖北省(不包含子区域):https://geo.datav.aliyun.com/areas_v3/bound/420000.json 湖北地级市(不包含子区域):http
阅读全文
posted @ 2024-05-25 14:38 周文豪
阅读(21)
评论(0)
推荐(0)
编辑
2024年5月23日
mysql left join 查询右表的最新记录
摘要: left join 关联查询右表多条记录只保留最新的一条,可以通过max+group by实现 sql如下: SELECT t1.*, t4.maxEndDate , t4.Q_STANDARD, t4.COAL_CLAS FROM pub_item_unit_info t1 LEFT JOIN (
阅读全文
posted @ 2024-05-23 14:29 周文豪
阅读(93)
评论(0)
推荐(0)
编辑
2024年5月21日
前端debugger未生效
摘要: 解决办法: 在vue.config.js中添加如下内容 module.exports = { configureWebpack: { devtool: 'source-map' } }
阅读全文
posted @ 2024-05-21 11:24 周文豪
阅读(124)
评论(0)
推荐(0)
编辑
Carousel轮播图实现预览功能
摘要: 一、vue2 1、安装 npm install v-viewer@1.6.4 npm i -S viewerjs 2、main.js中引入 import Viewer from 'v-viewer' import 'viewerjs/dist/viewer.css' Vue.use(Viewer)
阅读全文
posted @ 2024-05-21 10:54 周文豪
阅读(14)
评论(0)
推荐(0)
编辑
下一页