会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
闫真真
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2020年12月9日
vue动态给li追加class
摘要: <template> <div class="top"> <ul class="tabList clearfixh"> <li @click="tabClick(item.id)" :key="index" :class="['tabli',{active:item.id selData}]" v-
阅读全文
posted @ 2020-12-09 16:56 风景33
阅读(588)
评论(0)
推荐(0)
编辑
2020年11月26日
ANT DESIGN PRO VUE 带上传文件的FORM表单,上传文件后直接走接口验证文件
摘要: <template> <a-form id="components-form-demo-validate-other" :form="form" v-bind="formItemLayout" @submit="handleSubmit" > <a-form-item label="Plain Te
阅读全文
posted @ 2020-11-26 10:59 风景33
阅读(872)
评论(0)
推荐(0)
编辑
ant design pro vue 带上传文件的form表单,表单提交走接口上传文件
摘要: <template> <a-form-model ref="ruleForm" :model="formDataAll" :rules="rules" :label-col="labelCol" :wrapper-col="wrapperCol" > <a-form-model-item ref="
阅读全文
posted @ 2020-11-26 10:50 风景33
阅读(2504)
评论(0)
推荐(0)
编辑
2020年11月6日
带小数数字三个为单位,以逗号分开
摘要: 带小数数字三个为单位,以逗号分开:console.log(numberWithCommas(12345678912.1234)) 12,345,678,912.1234function numberWithCommas(n) {// 正则解释: 匹配到 \B(非单词边界)后, 后面要匹配到 (\d{
阅读全文
posted @ 2020-11-06 14:26 风景33
阅读(321)
评论(0)
推荐(0)
编辑
echarts图例分页展示
摘要: echarts图例分页展示:legend: { type: 'scroll', //分页类型 orient: 'horizontal', //横向 height: 50, pageIconColor: '#ff781f', //翻页箭头颜色 pageTextStyle:{ color: '#999'
阅读全文
posted @ 2020-11-06 14:24 风景33
阅读(3634)
评论(0)
推荐(0)
编辑
css 文字超出后隐藏,用...表示
摘要: 超出后隐藏: width: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
阅读全文
posted @ 2020-11-06 14:20 风景33
阅读(232)
评论(0)
推荐(0)
编辑
js 获取当前时间前几天日期
摘要: /* * 获取当前时间前几日数据,length为天数 * myGetDay(0) -- 今日 * 格式 2018-08-19* */ myGetDay: function(length) { var time = (new Date).getTime() - 24 * 60 * 60 * 1000
阅读全文
posted @ 2020-11-06 14:19 风景33
阅读(1095)
评论(0)
推荐(0)
编辑
2020年10月30日
数组在首尾加减元素
摘要: shift() 删除并返回数组的第一个元素。 push()方法可以在数组的末属添加一个或多个元素unshift()方法可以在数组的前端添加一个或多个元素pop()方法把数组中的最后一个元素删除
阅读全文
posted @ 2020-10-30 15:53 风景33
阅读(203)
评论(0)
推荐(0)
编辑
2020年10月20日
element ui 日期时间选择器格式化只选择年月日时
摘要: <el-date-picker key='DATETIME' v-model="startTime" type="datetimerange" range-separator="-" start-placeholder="开始时间" end-placeholder="结束时间" :default-t
阅读全文
posted @ 2020-10-20 14:09 风景33
阅读(4064)
评论(0)
推荐(0)
编辑
2020年7月30日
vue自定义表头添加图标并绑定事件
摘要: <el-table :data="tableData" > <template v-for="(item, index) in tableLabel"> <el-table-column :key="index" align="center" :type="item.type" :prop="ite
阅读全文
posted @ 2020-07-30 11:17 风景33
阅读(1381)
评论(0)
推荐(0)
编辑
下一页