- 博客(248)
- 资源 (3)
- 收藏
- 关注

原创 Element-UI二次封装实现TreeSelect 树形下拉选择组件
========================== 第二次优化 =======================3、优化组件(实现点击select输入框中的×删除勾选)<!-- /** * 树形下拉选择组件,下拉框展示树形结构,提供选择某节点功能,方便其他模块调用 * @author ljn * @date 2019-04-02 * ...
2019-02-23 17:29:06
54946
48

原创 Echarts折线图属性设置大全
Echarts折线图属性设置大全 var option = { backgroundColor: '#FFF0F5', title: { text: '折线图', subtext: '模拟数据', x: 'center' }, legend: { ...
2018-09-14 23:05:36
126584
20

原创 Echarts饼状图属性设置大全
1、标题设置 title: { text: '学生生源地来源分布图', subtext: '模拟数据', // x 设置水平安放位置,默认左对齐,可选值:'center' ¦ 'left' ¦ 'right' ¦ {number}(x坐标,单位px) x: 'center', ...
2018-09-09 19:24:56
140510
29

原创 小div在大div中水平垂直居中(两个div都固定宽高)
方法一:儿子绝对定位或相对定位,这样儿子脱离标准流,父亲有固定宽高,用儿子的margin去挤父亲<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> ...
2018-06-11 20:13:06
11859
原创 Angular17(2):angular项目中使用NG-ZORRO
在angular项目下运行命令 ng add ng-zorro-antd 跟随选项便可完成初始化配置,包括引入国际化文件,导入模块,引入样式文件等工作。
2024-06-04 09:42:43
832
原创 JS常用的循环遍历数组的方法及跳出数组循环的方式
for循环、ForEach、map、filter、every、some,reduce,reduceRight
2024-01-19 16:24:17
4352
原创 Element-UI的DateTimePicker禁用日期时间选择(type=datetime)
Element-UI的DateTimePicker禁用日期时间选择: type="datetime" 禁用当前时刻之前的日期时间选择、禁用当前时刻之后的日期时间选择
2023-03-25 23:30:00
3644
2
原创 Element-UI的DatePicker禁用日期选择(type=date/daterange)
Element-UI的el-date-picker禁用日期选择:禁用今天之前的日期选择、禁用今天之后的日期选择、限制选择日期范围
2023-03-25 22:00:00
5233
2
原创 Element-UI的el-date-picker控制台报错处理办法
Element-UI的el-date-picker控制台报错:vue.runtime.esm.js?c320:574 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop bei
2023-03-20 18:40:49
579
原创 Echarts图表大小自适应浏览器窗口大小
当调整浏览器窗口大小时,发生 resize 事件;监听resize,实现Echarts图表大小自适应浏览器窗口大小
2022-09-13 19:45:00
1303
3
原创 npm install 报错 “npm ERR gyp ERR”(node、node-sass、sass-loader三者版本对应关系)
安装node-sass需要与node、sass-loader三者版本匹配
2022-04-24 16:49:58
3381
原创 我的计算器
index.html<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>我的计算器</title> <link rel="stylesheet" href="css/index.css"> <script src="js/index.js"></script></hea
2021-12-23 21:57:23
464
原创 VUE中使用EventSource接收服务器推送事件
// Vue项目中,EventSource触发的事件中this指向变了// 使用const that = this,然后在EventSource触发的事件中使用thatif (typeof (EventSource) !== 'undefined') { const evtSource = new EventSource('/log/print', { withCredentials: true }) // 后端接口,要配置允许跨域属性 // 与事件源的连接刚打开时触发 ev.
2021-06-25 15:46:15
5566
3
原创 Vue项目中svg的使用
1、安装依赖npm install svg-sprite-loader --save-dev2、所有svg图标放到src/assets/icons/svg文件夹下,并在src/assets/icons下创建文件index.jsconst req = require.context('./svg', false, /\.svg$/)const requireAll = requireContext => requireContext.keys().map(requireConte
2021-06-21 18:46:45
2388
原创 vue-cli 3.x 搭建的项目中ESlint 语法检测配置说明
vue-cli 3.x 搭建的项目中ESlint 语法检测配置说明vue-cli 3.x搭建的项目中ESlint 语法检测配置,在package.json文件中,但可以在vue.config.js文件中关闭Eslint 语法检测。一、不使用Eslint 语法检测规则关闭Eslint 语法检测,可以在vue.config.js文件中设置lintOnSave或devServer.ov...
2020-02-06 18:57:39
1286
原创 vue-cli 3.x 配置多页面应用程序(配置文件vue.config.js )
vue.config.jsconst path = require('path');module.exports = { // 环境配置 devServer: { host: '0.0.0.0', port: '8090', https: false, open: true }, // 设置路...
2020-02-06 14:28:21
1705
2
jQuery——浏览器窗口两侧跟随的广告案例
2018-05-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人