JS中的事件 JS中的事件分类 1.鼠标事件: click/dbclick/mouseover/mouseout 2.HTML事件: onload/onunload/onsubmit/onresize/onfocus/onchange/onscroll 3.键盘事件 keydown:键盘按下时触发。 ...
分类:
编程语言 时间:
2018-05-01 20:47:57
阅读次数:
265
In this lesson I refactor a React component that utilizes a higher-order component for mutations to the new Mutation render prop component baked into ...
分类:
其他好文 时间:
2018-04-30 16:44:24
阅读次数:
189
1、修饰符种类 .stop .prevent .capture .self .once .passive 2、self修饰符说明 使用修饰符时,顺序很重要;相应的代码会以同样的顺序产生。因此,用 v-on:click.prevent.self 会阻止所有的点击,而 v-on:click.self.p ...
分类:
其他好文 时间:
2018-04-24 17:40:29
阅读次数:
279
1、准备环境 操作系统:centos 6.5 2台机器主机名为node53、node54 Mysql Lvs keepalived node2 Y Y Y node3 Y Y Y 2、安装mysql(配置主主复制) 服务器名称 ip vip node2 192.168.0.12 192.168.0. ...
分类:
数据库 时间:
2018-04-20 16:03:52
阅读次数:
203
1、创建对象 创建对象的两种方法: 使用Object构造函数 使用对象的字面形式 对象添加以及修改时JavaScript会在对象上调用[[Put]]和[[Set]]方法 2、属性探测 2.1、使用“in”操作符 2.2、使用“hasOwnProperty()”方法 3、删除属性 4、枚举属性 for ...
分类:
其他好文 时间:
2018-04-16 23:49:35
阅读次数:
189
What is Data Leakage¶ Data leakage is one of the most important issues for a data scientist to understand. If you don't know how to prevent it, leakag ...
分类:
其他好文 时间:
2018-04-14 16:28:48
阅读次数:
209
"Paint" is one of the most preference killer, it can easily cost more than 60fps, and once you trigger "Paint" it always trigger "Composite" as well. ...
分类:
Web程序 时间:
2018-04-09 23:11:59
阅读次数:
333
【原创】Windows系统内存计数器理解解析 2008-05-13 11:42:23 / 个人分类:性能测试 说明:本文的计数器以Windows2003为准。 序言;F9n)\%V1a6Z C)?ZV0内存的使用情况是系统性能中重要的因素之一,频繁的页交换及内存泄露都会影响到系统的性能。本文主要 ...
v-on的事件修饰符 v-on 提供了很多事件修饰符来辅助实现一些功能。事件修饰符有如下: .stop 阻止冒泡。本质是调用 event.stopPropagation()。 .prevent 阻止默认事件。本质是调用 event.preventDefault()。 .capture 添加事件监听器 ...
分类:
其他好文 时间:
2018-04-06 18:46:42
阅读次数:
200
先上一个场景:假如你突然想做饭,但是没有厨具,也没有食材。网上购买厨具比较方便,食材去超市买更放心。 实现分析:在快递员送厨具的期间,我们肯定不会闲着,可以去超市买食材。所以,在主线程里面另起一个子线程去网购厨具。 但是,子线程执行的结果是要返回厨具的,而run方法是没有返回值的。所以,这才是难点, ...
分类:
编程语言 时间:
2018-04-06 18:36:00
阅读次数:
223