- 博客(58)
- 资源 (8)
- 收藏
- 关注
原创 JS创建对象的方法
console . log("你好,我是" + this . name);} } var person = new Person("张三" , 20);
2023-06-07 13:50:16 207
原创 el-tree子节点半选,父节点全选,数据回显时子节点部分选中,父节点都全选中
el-tree子节点半选,父节点全选,数据回显时子节点部分选中,父节点都全选中。
2022-08-04 14:36:23 526
原创 vue 样式class多选、单选,vue多选,vue单选
vue多选、vue单选、vue不使用radio、vue选中添加样式、vue选中添加效果
2022-06-17 13:31:56 914 1
原创 兼容各大浏览器导出Excel
// 下载模板 downloadModel() { this.$http({ url: this.$http.adornUrl("/prod/category/template"), method: "get", responseType: "blob", // 解决文件下载乱码问题 }).then(({ data }) => { var blob = new Blob([data], {
2021-12-14 14:20:22 1142
原创 聚光灯文字效果
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document&.
2021-12-10 16:16:51 103
原创 炫酷Botton样式
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document&.
2021-12-10 16:06:01 172
原创 SVG流光文字
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document&.
2021-12-10 16:02:06 283
原创 JS复制到剪贴板
// 将内容复制到剪贴板 copyRow(url) { let input = document.createElement("input"); // js创建一个input输入框 input.value = url; // 将需要复制的文本赋值到创建的input输入框中,this.ruleForm.url这个是我要复制的内容 document.body.appendChild(input); // 将输入框暂时创建到实例里面 input.select
2021-11-24 15:52:38 409
原创 JS导出txt、js导出txt换行
// txt文件导出/**需要导出的数组内容*val*/ onClickDownDaily(val) { let title = "图片资源链接"; let str = ""; val.forEach((item, index) => { str += `地址-${index + 1}:${item}\r\n`; }); let allStr = title + "\r\n" + "\r\n" + str;
2021-11-24 15:50:32 1173
原创 递归树过滤
树形结构过滤/** * 路由树过滤 * @param {*} menuList 菜单列表 */function filterTree(data) { var newTree = data.filter((x) => x.isShow == 1); newTree.forEach((x) => x.list && (x.list = filterTree(x.list))); return newTree;}...
2021-11-18 14:25:51 94
原创 网页定时刷新
var timeout = prompt("设置刷新时间间隔[S]"); var current = location.href; if(timeout > 0) { setTimeout('reload()', 1000 * timeout); } else { location.replace(current); } function reload()
2021-10-21 15:32:13 311
原创 vue、element-UI表格check保持选中
<el-table :data="search(keywords)" highlight-current-row :row-key="(row)=>row.id" @select="selectionCheck" :height="height" @current-change="currentChange" @selection-change="handleSelectionChange"> <el-table-column type="selection" :reser..
2021-09-24 10:20:26 255
原创 js判断字段是否为空
判断字段是否为空fileUrl(e){ let p=!this.isEmpty(e)&&String(e).replace(/^[\s]+|[\s]+$/g,'')!='[]'; if(p){ return JSON.parse(e) }else{ return false } }, isEmpty(str) { return (null == str || undefined ==
2021-07-25 18:29:25 977
原创 vue项目搭建遇到的各种坑
报错–ReferenceError: regeneratorRuntime is not defined//原因//不能解析async … await 等高级语法cnpm install babel-polyfill --save//在main.js文件中引入import "babel-polyfill"
2021-07-21 16:21:38 104
原创 vue-router 按需加载 component: () => import()报错
命令输入cnpm install babel-plugin-syntax-dynamic-import --save-devwebpack.base.conf.js修改loader{ test: /\.js$/, loader: 'babel-loader', options: { plugins: ['syntax-dynamic-import'] }, include: [resolve('src
2021-07-20 10:43:07 695
原创 element-ui主题
element-ui 、sass npm i element-ui -S npm install --save-dev sass-loader npm install --save-dev node-sass在build文件夹下的webpack.base.conf.js的rules里面添加配置 { test: /\.sass$/, loaders: ['style', 'css', 'sass']}elementui的自定义主题工具npm i element-theme -
2021-07-20 10:36:41 872
原创 nginx配置地址端口
server { listen 8001;#监听端口 server_name localhost;#域名 location / { root /home/vue/dist/; index index.html index.htm; try_files $uri $uri/ /index.html; } access_log off; error_page 500 502
2021-07-09 15:51:00 1482
原创 ESLint在vsCode设置自动格式匹配、格式规范
在项目根目录新建一个JSON文件,文件名要保持一致分别在设置与根目录的settings.json文件中写入以下代码{ "git.autofetch": true, "editor.fontFamily": "'Courier New', Consolas, monospace", "editor.fontSize": 16, "files.autoGuessEncoding": true, // "files.autoSave": "afterDelay", //自动保存 /.
2021-02-21 15:37:31 396
原创 ElementUI日期时间选择器禁止此刻之前的所有时间选择(精确到,时、分、秒)、pickerOptions、日期选择器范围选择
elementUI日期时间选择器范围(精确到,时、分、秒。????️)一、html<el-date-picker v-model="record.createTime" :picker-options="pickerOptions" format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择日期时间" />二、data部分pickerOptions: { disabledDate(time
2020-08-19 17:48:27 10605
原创 css text文本超出隐藏显示省略号、超出隐藏、省略号
css text文本超出隐藏显示省略号 overflow: hidden; text-overflow: ellipsis;//溢出用省略号显示 display: -webkit-box;//将对象作为弹性伸缩盒子模型显示。 -webkit-box-orient: vertical; -webkit-line-clamp: 2;//显示行数...
2020-07-17 17:11:18 293
原创 vue对数组进行搜索、vue搜索、vue模糊搜索
<template><div class="query-div"> <div class="search-panel input-group mar-btm-dm" style="margin-bottom: 10px;margin-top: 10px;">...
2020-04-14 14:06:44 1697
原创 页面整体等比例缩小,页面缩小,页面放大,页面缩放
1.当我们需要对一个页面进行等比例的缩小活着放大时,修改px显然不能达到我们的要求,那么我们可以这样做transform-origin: 0px 0px;//在使用transform方法进行文字或图像的变形时,是以元素的中心点为基准点进行的。使用transform-origin属性,可以改变变形的基准点,用法:transform-origin: 10px 10px;transform: sca...
2020-03-25 20:36:42 4400
原创 vue自定义组件调用父函数,vue自定义组件修改父组件的值,vue自定组件调用父级的值
1.在自定义组件中调用父组件的函数Vue.component('my-componnet',{ template:`<div @click="getF">{{]}</div>`, methods:{ getF:function(){ this.$root.f();//父函数 debugger this.$root.fVal;//父级data中的值...
2020-03-18 09:48:42 382
原创 Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
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 being mutated: “cu...
2020-03-03 10:31:27 529
原创 vue父级调用子函数,vue调用自定义组件函数
1.html部分<div id="test"> <my-component ref="childFunction"></my-component></div>2.自定义组件Vue.component('my-component',{ templata:`<button>你好!</button>`, method...
2020-02-28 13:45:37 472
vlc-3.0.7.1.dmg
2019-07-31
RemoteDesktop10.1.8.pkg.zip
2019-06-24
Microsoft Remote Desktop.zip
2019-06-24
sublime-text_build-3208_amd64.deb
2019-06-13
keka for mac 压缩 解压
2018-11-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人