Repository: incubator-weex Updated Branches: refs/heads/0.15-dev 10a074fd5 -> fb2ca3298
* [doc] Change the doc of timer. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/fb2ca329 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/fb2ca329 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/fb2ca329 Branch: refs/heads/0.15-dev Commit: fb2ca329800a7d11d692f1f024ddb3caee4abd6f Parents: 10a074f Author: YorkShen <shenyua...@gmail.com> Authored: Wed Jul 19 16:17:20 2017 +0800 Committer: YorkShen <shenyua...@gmail.com> Committed: Wed Jul 19 16:17:20 2017 +0800 ---------------------------------------------------------------------- doc/source/cn/references/modules/timer.md | 2 +- doc/source/references/modules/timer.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fb2ca329/doc/source/cn/references/modules/timer.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/modules/timer.md b/doc/source/cn/references/modules/timer.md index 7bc87bb..3ac0c71 100644 --- a/doc/source/cn/references/modules/timer.md +++ b/doc/source/cn/references/modules/timer.md @@ -8,7 +8,7 @@ version: 0.10 Weex Timerå¯ä»¥ç¨æ¥å»¶æ¶å¯å¨ä¸ä¸ªä¸æ¬¡æ§ä»»å¡æè éå¤ä»»å¡ãTimerä¼å°½æ大åªåæä¾ç²¾ç¡®ç延æ¶ï¼ä½æ¯å»¶æ¶å¯è½å¹¶ä¸ç²¾ç¡®ï¼å»¶æ¶æ¶é´å¾å¯è½ä¼è¶ è¿ç¨æ·ææçæ¶é´ãå®é ä¸ï¼timerä» ä» æ¯ä¸ºäºæ¯æHTML5ä¸çpolyfillï¼*ä¸å»ºè®®*å¼åè ç´æ¥ä½¿ç¨timer. ## API -Timerä¸å»¶æ¶çåä½æ¯æ¯«ç§ï¼ä¸å»¶æ¶æ¶é´åºè¯¥ä¸ºä¸ä¸ªéè´çintå¼(intå¼æ大为0x7FFFFF).å¦æ延æ¶æ¶é´ä¸ºè´æ°æè é¶ï¼timerä¼å°å»¶æ¶æ¶é´é置为0ï¼å³å°è¯¥ä»»å¡é©¬ä¸æå ¥ä»»å¡éåçå°¾é¨ã +Timerä¸å»¶æ¶çåä½æ¯æ¯«ç§ï¼ä¸å»¶æ¶æ¶é´åºè¯¥ä¸ºä¸ä¸ªéè´ç**int**å¼(intå¼æ大为0x7FFFFF).å¦æ延æ¶æ¶é´ä¸ºé¶ï¼ä¼å°è¯¥ä»»å¡é©¬ä¸æå ¥ä»»å¡éåçå°¾é¨ã对äºå ¶ä»éæ³å¼ï¼timerçè¡ä¸ºæªå®ä¹ã ### setTimeout(fn, timeout) `setTimeout()`ä¼çå¾ æå®çæ¶é´ï¼ç¶åæ§è¡ç»åºçå½æ°ã http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fb2ca329/doc/source/references/modules/timer.md ---------------------------------------------------------------------- diff --git a/doc/source/references/modules/timer.md b/doc/source/references/modules/timer.md index 6813d28..9e7da63 100644 --- a/doc/source/references/modules/timer.md +++ b/doc/source/references/modules/timer.md @@ -11,8 +11,7 @@ Actually, this module is made for the polyfill of HTML5 timer APIs, developers * ## API -All timeout or interval in this module are measured in milliseconds. -Also, timeout and interval should be a non-negative integer(the max of integer is 0x7FFFFFFF). If timeout or interval is negative, then it will be reset to zero, e.g. the task will be put in the task queue immediately. +All timeout or interval in this module are measured in milliseconds. Also, timeout and interval should be a non-negative **integer**(the max of integer is 0x7FFFFFFF). The behavior of invalid value for timeout or interval is undefined. ### setTimeout(fn, timeout)