博客园

super.hill

记录搬砖中遇到的坑,欢迎批评指导!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 2 3 4 5 6 7 ··· 16 下一页

2021年4月27日

摘要: 阅读全文
posted @ 2021-04-27 13:59 超岭 阅读(34) 评论(0) 推荐(0) 编辑

2021年4月23日

摘要: 模板替换变量 function tpl(template,data){ return template.replace(/\{%([^%\{\}]+)%}/g,function(orgin,item){ item = item.replace(/^\s+|\s+$/,""); var params 阅读全文
posted @ 2021-04-23 15:18 超岭 阅读(464) 评论(0) 推荐(0) 编辑

2021年4月12日

摘要: 背景: 左侧伸缩导航菜单,右侧的剩余部分为表格,左侧导航隐藏后再显示,表格会出现滚动条 <div class="flex"> <aside style="width:100px">左侧导航</aside> <main class="flex1"> <el-table> </el-table> </m 阅读全文
posted @ 2021-04-12 16:52 超岭 阅读(1140) 评论(0) 推荐(0) 编辑

摘要: 防抖,节流函数使用不多,lodash完美封装好,开箱即用,我自己也要了解一下内部逻辑 防抖:在延时时间内 再次触发函数,以最后一次触发执行函数,比如点击事件,点击多次提交数据 function debounce(cb,delay){ var timer return function(){ clea 阅读全文
posted @ 2021-04-12 15:01 超岭 阅读(49) 评论(0) 推荐(0) 编辑

2021年3月3日

摘要: <template> <el-form ref="form" :model="formData" label-width="120px"> <el-row> <el-col :span="10"> <el-form-item label="图片" prop="mediaFileUrl"> <el-u 阅读全文
posted @ 2021-03-03 17:47 超岭 阅读(433) 评论(0) 推荐(0) 编辑

2021年2月26日

摘要: str = str.replac(/\u200B/g,'') 阅读全文
posted @ 2021-02-26 15:09 超岭 阅读(86) 评论(0) 推荐(0) 编辑

2020年11月27日

摘要: 常见的用法有Vue.use(VueRouter); Vue.use(ElementUI) 先看看 vue的源码 function initUse (Vue) { Vue.use = function (plugin) { var installedPlugins = (this._installed 阅读全文
posted @ 2020-11-27 14:17 超岭 阅读(620) 评论(0) 推荐(0) 编辑

2020年9月15日

摘要: 当前element版本为 2.13.2 1.表格错位问题 加上如下css代码 .el-table th.gutter { display: table-cell !important; } .el-table colgroup.gutter { display: table-cell !import 阅读全文
posted @ 2020-09-15 17:03 超岭 阅读(1073) 评论(0) 推荐(0) 编辑

2020年8月23日

摘要: var list = [{count: 1.2, order: 3},{count: 2.5, order: 5},{count: 1.3, order: 9}]; function compare(k){ return (a,b) =>a[k]>b[k] ? 1 : -1 } var t = li 阅读全文
posted @ 2020-08-23 14:47 超岭 阅读(566) 评论(0) 推荐(0) 编辑

2020年7月27日

摘要: window.innerHeight Chrome浏览器 IE8 下面代码适用所有浏览器 var w = window.innerWidth || document.documentElement.clientWidth ;var w = window.innerHeight || document 阅读全文
posted @ 2020-07-27 18:52 超岭 阅读(395) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 16 下一页
博客园