前端
sheen~向阳
Today is better than yesterday
展开
-
git操作文档
常用操作git clonegit configgit branchgit checkoutgit statusgit addgit commitgit pushgit pullgit loggit tag接下来,将通过对 我的博客 仓库进行实例操作,讲解如何使用 Git 拉取代码到提交代码的整个流程。git clone“从git服务器拉取代码git clone https://github.com/gafish/gafish.github.com.git代码下载完成后在翻译 2021-07-07 18:17:36 · 101 阅读 · 0 评论 -
vue ctrl、shift 键实现多选功能
<div> <div v-for="(item, index) in listData" :key="item.id" :class="item.selected ? 'is-actived-box' : ''" @click="handleItem(item, index)">{{ item.label }}</div></div>keyevent () { var that =this; // 按下键盘 document.onkey翻译 2021-06-25 11:28:40 · 1357 阅读 · 1 评论 -
基于VUE 开发的 表单设计器
k-form-design 基于vue和ant-design-vue实现的表单设计器组件预览地址http://cdn.kcz66.com/form-design.html组件地址 https://www.npmjs.com/package/k-form-design开源地址https://github.com/Kchengz/k-form-design第二种 基于开源Element UI表单设计及代码生成器Form Generatorgithub仓库 .原创 2020-07-14 10:33:44 · 9839 阅读 · 3 评论 -
递归树形json数组,查找所有父节点,展开父节点,删除子节点
递归json数组,查找所有父节点,展开父节点删除子节点// 查找子节点的所有父节点getParentNode (arr1, id) { let getNodeArr= [] const forFunc = function (arr, id) { for (let i = 0; i < arr.length; i++) { let getNodeArr= arr[i] if (item.id === id) { getNodeArr.p.原创 2020-07-13 16:18:50 · 1157 阅读 · 0 评论 -
npm ERR! chromedriver@2.46.0 install: `node install.js`
npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! chromedriver@2.46.0 install: `node install.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the chromedriver@2.46.0 install script.npm ERR! Th...原创 2019-08-12 17:05:20 · 821 阅读 · 0 评论 -
display:inline-block 兼容性
IE6、IE7不识别inline-block, 支持宽高,不支持在一行显示。其它主流浏览器均支持inline-block。解决IE6、IE7兼容性的方法:原理 : 直接将块元素设置为display:inline呈现为内联对象,然后触发layout(如zoom:1)。兼容所有浏览器的方法是:{ display:inline-block; *display:inline;...翻译 2019-08-09 18:11:16 · 331 阅读 · 0 评论 -
卸载vue-cli2,再安装vue-cli3
先卸载旧版本(npm uninstall vue-cli -g)再安装Vue CLI 3(npm install -g @vue/cli)若安装报错如下:先执行 npm cache clean --force 清除缓存 出现说明执行成功再 npm installnpm install -g @vue/cli 安装vue-cli3npm -V 查看是否安装成功新建项目 vue...原创 2019-08-08 11:29:07 · 1630 阅读 · 0 评论 -
vue2.0项目CSS3动画打包后动画失效解决办法
vue2.0 + webpack做项目时,css3动画打包前正常,打包后失效,原因是:vue-cli脚手架package.json配置文件里面对浏览器的版本做了css的前缀处理"browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ]意思是 只兼容主流浏览器的最新两个版本。如果我们要兼容所...翻译 2019-07-22 17:05:42 · 1023 阅读 · 1 评论 -
echart图表 宽高度自适应
之前在使用echart的时候就发现了echart是不支持图表高度自适应的。翻阅echarts文档,里面都有配置详细介绍,通过设置宽度百分比再使用 echart图表本身是提供了一个resize的函数可实现宽度自适应。 但是二十世纪新世界,只能宽度自适应那可是不行的呀Follow me设置渲染echart图表的div随着window的width和height变化而变化// An highligh...原创 2019-06-18 10:23:22 · 4075 阅读 · 0 评论 -
npm ERR! chromedriver@2.46.0 install: `node install.js`
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chromedriver@2.46.0 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chromedriver@2.46.0 install script. npm ERR! Th...翻译 2019-06-19 10:36:28 · 690 阅读 · 0 评论