We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d04cd7 commit dabc1feCopy full SHA for dabc1fe
js.md
@@ -6,6 +6,16 @@
6
Math.random()*(n-m)+m
7
```
8
9
+- [return false](http://stackoverflow.com/questions/1357118/event-preventdefault-vs-return-false)
10
+```javascript
11
+// event.preventDefault()会阻挡预设要发生的事件.
12
+// event.stopPropagation()会阻挡发生冒泡事件.
13
+// 而return false则是前面两者的事情他都会做:
14
+// 他会做event.preventDefault();
15
+// 他会做event.stopPropagation();
16
+// 停止callback function的执行并且立即return回来
17
+```
18
+
19
#### 2. [微信 weixin](http://loo2k.com/blog/detecting-wechat-client/)
20
21
- UserAgent 判断微信客户端
0 commit comments