摘要:
(function(doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function() 阅读全文
摘要:
在原来的属性描述符上重写: function customInputSetter(){ var descriptor = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value"); var originalSet = d 阅读全文
摘要:
传递参数 const cats = { "Coding Cat": "https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif", "Compiling Cat": "https://media.giphy.com/media/mlvseq9yvZh 阅读全文
摘要:
目录 一.概述 二.配置文件详解 三.实战案例 1.nginx 2.rsyslog 3.redis 4.supervisor 5.yum 6.httpd 7.salt 四.命令参数说明 五.自定义日志转储时间 1.日志转储流程 2.定义每天00点00分转储nginx日志 六.参考资料 正文 一.概述 阅读全文
摘要:
从后端接口下载文件的2种方式 一、get方式 直接使用: location.href='http://www.xxx.com/getFile?params1=xxx¶ms2=xxxx' 二、post方式 当有文件需要传给后端接口、后端处理后返回文件时,用post方式发送formdata。此时 阅读全文
摘要:
plugins: [ [ 'component', { libraryName: 'element-ui', } ]] 阅读全文
摘要:
1、git初始化 git init 1 2、在指定文件夹里创建gh-pages分支 git checkout --orphan gh-pages 1 3、添加文件到暂存区 git add . 1 4、添加信息 git commit -m “xxxxxxxx” 5、推送项目到gh-pages分支 gi 阅读全文
摘要:
memoization 来源于拉丁语 memorandum ("to be remembered"),不要与 memorization 混淆了。 首先来看一下维基百科的描述: In computing, memoization or memoisation is an optimization te 阅读全文