update
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/4ac5cafa Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/4ac5cafa Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/4ac5cafa Branch: refs/heads/master Commit: 4ac5cafa15d3c76c8859a46803b7b14048e06336 Parents: f1ddc1e Author: MrRaindrop <[email protected]> Authored: Mon Mar 26 18:03:13 2018 +0800 Committer: MrRaindrop <[email protected]> Committed: Mon Mar 26 18:03:13 2018 +0800 ---------------------------------------------------------------------- source/cn/wiki/event-bubble.md | 6 +++--- source/wiki/event-bubble.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4ac5cafa/source/cn/wiki/event-bubble.md ---------------------------------------------------------------------- diff --git a/source/cn/wiki/event-bubble.md b/source/cn/wiki/event-bubble.md index f44748a..cfdd6d3 100644 --- a/source/cn/wiki/event-bubble.md +++ b/source/cn/wiki/event-bubble.md @@ -50,7 +50,7 @@ Weex å¨ 0.13 çæ¬ SDK éå®ç°äºäºä»¶å泡æºå¶ã注æäºä»¶åæ³¡é» ```javascript { handleClick (event) { - // stop event propagation. + // 黿¢ç»§ç»å泡. event.stopPropagation() } } @@ -62,6 +62,6 @@ Weex å¨ 0.13 çæ¬ SDK éå®ç°äºäºä»¶å泡æºå¶ã注æäºä»¶åæ³¡é» ## å®ä¾ -[å¼å¯äºä»¶å泡](http://dotwe.org/vue/fa2957ce3e9eb47ad9ae1da22d845e95)ï¼ä½¿ç¨ Weex playground App æ«æé¡µé¢éçäºç»´ç ï¼ç¶å卿å¼é¡µé¢ä¸ç¹å»å å« 'click me' æåçæ¹æ¡ï¼ä¼çå°äºä»¶å泡ææï¼å³å¤å±çç»ä»¶ä¾æ¬¡æ¾ç¤ºäºä»¶æååæ³¡å°å½åç»ä»¶çæç¤ºã +- [å¼å¯äºä»¶å泡](http://dotwe.org/vue/fa2957ce3e9eb47ad9ae1da22d845e95)ï¼ä½¿ç¨ Weex playground App æ«æé¡µé¢éçäºç»´ç ï¼ç¶å卿å¼é¡µé¢ä¸ç¹å»å å« 'click me' æåçæ¹æ¡ï¼ä¼çå°äºä»¶å泡ææï¼å³å¤å±çç»ä»¶ä¾æ¬¡æ¾ç¤ºäºä»¶æååæ³¡å°å½åç»ä»¶çæç¤ºã -[黿¢å泡](http://dotwe.org/vue/2cc80e19c9b2430fb780234628065a69)ï¼ä½¿ç¨ Weex playground App æ«æé¡µé¢éçäºç»´ç ï¼ç¶å卿å¼é¡µé¢ä¸ç¹å»å å« 'click me' æåçæ¹æ¡ï¼å¯ä»¥çå°äºä»¶å泡被ç¶ç»ä»¶ä¸æäºï¼ä¸ååæ³¡å°æå¤å±ç»ä»¶ã +- [黿¢å泡](http://dotwe.org/vue/2cc80e19c9b2430fb780234628065a69)ï¼ä½¿ç¨ Weex playground App æ«æé¡µé¢éçäºç»´ç ï¼ç¶å卿å¼é¡µé¢ä¸ç¹å»å å« 'click me' æåçæ¹æ¡ï¼å¯ä»¥çå°äºä»¶å泡被ç¶ç»ä»¶ä¸æäºï¼ä¸ååæ³¡å°æå¤å±ç»ä»¶ã http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4ac5cafa/source/wiki/event-bubble.md ---------------------------------------------------------------------- diff --git a/source/wiki/event-bubble.md b/source/wiki/event-bubble.md index f470a7e..07b3034 100644 --- a/source/wiki/event-bubble.md +++ b/source/wiki/event-bubble.md @@ -50,7 +50,7 @@ In the event handler function, you can use the `event.stopPropagation()` method ```javascript { handleClick (event) { - // stop event propagation. + // Stop event propagation. event.stopPropagation() } } @@ -62,6 +62,6 @@ One thing should be noticed: **For compatibility reason, Weex does not turn on e ## Examples -[enable event bubbling](http://dotwe.org/vue/fa2957ce3e9eb47ad9ae1da22d845e95): Use Weex playground APP to scan the qr-code, and then click on the middle of the rectangle with a line of text 'click me' on, you can see the event bubbling up, being handled with every listener binding on each div element, printing messages which indicate that they are indeed been reached by the event. +- [enable event bubbling](http://dotwe.org/vue/fa2957ce3e9eb47ad9ae1da22d845e95): Use Weex playground APP to scan the qr-code, and then click on the middle of the rectangle with a line of text 'click me' on, you can see the event bubbling up, being handled with every listener binding on each div element, printing messages which indicate that they are indeed been reached by the event. -[stop event propagation](http://dotwe.org/vue/2cc80e19c9b2430fb780234628065a69): Use Weex playground APP to scan the qr-code, and then click on the middle of the rectangle with a line of text 'click me' on, you can see the event bubbling is disturbed, no longer continue to spread to the root element. +- [stop event propagation](http://dotwe.org/vue/2cc80e19c9b2430fb780234628065a69): Use Weex playground APP to scan the qr-code, and then click on the middle of the rectangle with a line of text 'click me' on, you can see the event bubbling is disturbed, no longer continue to spread to the root element.
