上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 67 下一页
摘要: 虽然nodejs的require('child_process').execSync可以使用shell,但其实问题特别多。尤其是符号和语法冲突,可读性也很差,只能完成一些小规模的shell使用。 阅读全文
posted @ 2018-03-22 20:37 贝尔塔猫 阅读(3630) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/crf-Aaron/archive/2017/11/16/7844462.html var time = '2018-03-22 00:00:00'.replace(/\-/g, '/');var date = new Date(time)window 阅读全文
posted @ 2018-03-20 21:54 贝尔塔猫 阅读(385) 评论(0) 推荐(0)
摘要: // 稍后放到公共类库去 Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" ... 阅读全文
posted @ 2018-03-20 20:20 贝尔塔猫 阅读(164) 评论(0) 推荐(0)
摘要: 场景: 同事说Vue出现问题,当一个变量被赋值之后,立刻变成了undefined,而数据源明明是有值的。 我知道肯定是哪个地方改变了变量,但无法通过代码得出结论,最后无奈只能用【二分法删除代码】,经过一番怀疑人生的摸索,终于发现是Select / Option 双向数据绑定导致的。 简单的说,就是s 阅读全文
posted @ 2018-03-20 15:14 贝尔塔猫 阅读(523) 评论(0) 推荐(0)
摘要: ester: HK-webpagetest-124.248.221.30First View onlyTest runs: 3 Export HTTP Archive (.har)Custom Metrics ester: HK-webpagetest-124.248.221.30First Vie 阅读全文
posted @ 2018-03-15 21:45 贝尔塔猫 阅读(227) 评论(0) 推荐(0)
摘要: let div = document.createElement('div'); let loop = setInterval(() => { console.log(div); console.clear(); }); // 监听id,当有人访问到div对象的id时,触发的事件。 // 当我们打开浏览器并且输入console.log(div)时,chrome dev tool... 阅读全文
posted @ 2018-03-12 19:49 贝尔塔猫 阅读(829) 评论(0) 推荐(0)
摘要: var clickNavByText = function (text) { var list = parent.document.querySelectorAll('[data-options]') list.forEach(function (e, i) { var _text = e.querySelector("span").textContent; ... 阅读全文
posted @ 2018-03-07 21:44 贝尔塔猫 阅读(202) 评论(0) 推荐(0)
摘要: 蛮实用的类库 https://github.com/ElemeFE/mint-ui/edit/master/src/utils/dom.js 阅读全文
posted @ 2018-03-06 21:12 贝尔塔猫 阅读(289) 评论(0) 推荐(0)
摘要: laydate的input,会自动被清空,当别的input修改的时候。改成这样既可解决 阅读全文
posted @ 2018-03-05 18:37 贝尔塔猫 阅读(661) 评论(0) 推荐(0)
摘要: https://filezilla-project.org/download.php?platform=osx 阅读全文
posted @ 2018-03-05 08:14 贝尔塔猫 阅读(251) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 67 下一页