上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 66 下一页
摘要: // 稍后放到公共类库去 Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" ... 阅读全文
posted @ 2018-03-20 20:20 贝尔塔猫 阅读(175) 评论(0) 推荐(0)
摘要: 场景: 同事说Vue出现问题,当一个变量被赋值之后,立刻变成了undefined,而数据源明明是有值的。 我知道肯定是哪个地方改变了变量,但无法通过代码得出结论,最后无奈只能用【二分法删除代码】,经过一番怀疑人生的摸索,终于发现是Select / Option 双向数据绑定导致的。 简单的说,就是s 阅读全文
posted @ 2018-03-20 15:14 贝尔塔猫 阅读(532) 评论(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 贝尔塔猫 阅读(242) 评论(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 贝尔塔猫 阅读(838) 评论(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 贝尔塔猫 阅读(208) 评论(0) 推荐(0)
摘要: 蛮实用的类库 https://github.com/ElemeFE/mint-ui/edit/master/src/utils/dom.js 阅读全文
posted @ 2018-03-06 21:12 贝尔塔猫 阅读(296) 评论(0) 推荐(0)
摘要: laydate的input,会自动被清空,当别的input修改的时候。改成这样既可解决 阅读全文
posted @ 2018-03-05 18:37 贝尔塔猫 阅读(670) 评论(0) 推荐(0)
摘要: https://filezilla-project.org/download.php?platform=osx 阅读全文
posted @ 2018-03-05 08:14 贝尔塔猫 阅读(257) 评论(0) 推荐(0)
摘要: 导入scss @mixin 使用:@include flex(flex-start, center); @function 使用: font-size: pxToRem(50px); @if @include position(false,false,30rpx, 30rpx); @if or / 阅读全文
posted @ 2018-03-04 20:55 贝尔塔猫 阅读(159) 评论(0) 推荐(0)
摘要: 传送门: Example1: index.js 命令这样执行: node ./index.js --name 123 --path 456 当然也可以这样执行:node ./index.js -n 123 但建议还是使用 '--' 避免冲突。 Example2: 无参数的值如何获取? argv._ 阅读全文
posted @ 2018-03-03 10:54 贝尔塔猫 阅读(898) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 66 下一页