* [doc] Fix typo.

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8bd70c4f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8bd70c4f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8bd70c4f

Branch: refs/heads/master
Commit: 8bd70c4f5d51067b9255f772440a3b149ab4a065
Parents: 4fed11d
Author: Yun Dong <[email protected]>
Authored: Fri Feb 24 15:12:30 2017 +0800
Committer: Yun Dong <[email protected]>
Committed: Fri Feb 24 15:12:30 2017 +0800

----------------------------------------------------------------------
 doc/advanced/extend-to-android.md                      | 2 +-
 doc/source/cn/references/advanced/extend-to-android.md | 2 +-
 doc/source/cn/references/advanced/extend-to-ios.md     | 2 +-
 doc/source/cn/references/components/a.md               | 2 +-
 doc/source/cn/references/components/refresh.md         | 2 +-
 doc/source/cn/references/modules/dom.md                | 4 ++--
 doc/source/cn/references/modules/index.md              | 2 +-
 doc/source/references/advanced/extend-to-android.md    | 2 +-
 doc/source/references/components/div.md                | 2 +-
 doc/source/references/modules/dom.md                   | 4 ++--
 doc/source/references/modules/storage.md               | 2 +-
 doc/source/references/modules/webview.md               | 6 +++---
 12 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/advanced/extend-to-android.md 
b/doc/advanced/extend-to-android.md
index 1d49dfd..336f5df 100644
--- a/doc/advanced/extend-to-android.md
+++ b/doc/advanced/extend-to-android.md
@@ -57,7 +57,7 @@ you can add  `` @JSMethod (uiThread = false or true ) `` 
annotation to choose th
 Now `event` moudle is avaiable in weex, use the module like this:   
 ```javascript
 
-var event = require('@weex-module/event');
+var event = weex.requireModule('event');
 event.openURL("http://www.github.com";);
 
 ```

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-android.md 
b/doc/source/cn/references/advanced/extend-to-android.md
index 71c642d..e2d654c 100644
--- a/doc/source/cn/references/advanced/extend-to-android.md
+++ b/doc/source/cn/references/advanced/extend-to-android.md
@@ -48,7 +48,7 @@ JS 调用如下:
   module.exports = {
     methods: {
       click: function() {
-        require('@weex-module/myModule').printLog("我是一个测试!");
+        weex.requireModule('myModule').printLog("我是一个测试!");
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md 
b/doc/source/cn/references/advanced/extend-to-ios.md
index af6c4fd..4edecf4 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -58,7 +58,7 @@ Weex SDK 只提供渲染,而不是å…
¶ä»–的能力,如果你需要 像网络
     这里的  require 里面的event 就是在 
上一步调用`registerModule:` 注册module 时候的name
    
    ```javascript
-    var eventModule = require('@weex-module/event'); 
+    var eventModule = weex.requireModule('event'); 
     eventModule.openURL('url',function(ret) {   
         nativeLog(ret);
     });

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/components/a.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/a.md 
b/doc/source/cn/references/components/a.md
index 5cac8dc..ce2dcf1 100644
--- a/doc/source/cn/references/components/a.md
+++ b/doc/source/cn/references/components/a.md
@@ -46,7 +46,7 @@ version: 2.1
 1. **不能**直接在 `<a>` 中添加文本。
   错误示例,“click” 无法被正常渲染。
 
-  ```HTML
+  ```html
   <template>
     <div class="wrapper">
       <a href="http://dotwe.org/raw/dist/a468998152ee680413588c38bd61c29e.js";>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/components/refresh.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/refresh.md 
b/doc/source/cn/references/components/refresh.md
index 48c89ac..1eba39c 100644
--- a/doc/source/cn/references/components/refresh.md
+++ b/doc/source/cn/references/components/refresh.md
@@ -19,7 +19,7 @@ version: 2.1
 
 ## 特性
 
-- `display {string}`:可选值为 `show` 或者 `hide`,仅隐藏 
`<indicator>`,`<loading>` 其他子组件依然可见,`<loading>` 
事件仍会被触发。
+- `display {string}`:可选值为 `show` 或者 `hide`,仅隐藏 
`<indicator>`,`<refresh>` 其他子组件依然可见,`<refresh>` 
事件仍会被触发。
 
 ## 样式
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/dom.md 
b/doc/source/cn/references/modules/dom.md
index f6180d1..b7473c2 100644
--- a/doc/source/cn/references/modules/dom.md
+++ b/doc/source/cn/references/modules/dom.md
@@ -24,7 +24,7 @@ version: 2.1
 
 ~~这个API也能通过调用VM的方法 `$scrollTo` 来使用(已弃用)~~
 
-要在你的 `.we` 文件中使用这个 API,可以使用 
`require('@weex-module/dom').scrollToElement`。
+要在你的 `.vue` 文件中使用这个 API,可以使用 
`weex.requireModule('dom').scrollToElement`。
 
 #### 参数
 - `node {Node}`:你要滚动到的那个节点
@@ -122,7 +122,7 @@ version: 2.1
 
 [try it](../../../examples/dom-scroll.html)
 
-### getComponentRect(ref, callback)<sup>v0.9.4+</sup>
+### getComponentRect(ref, callback) <span class="api-version">v0.9.4+</span>
 
 通过标签的 `ref` 获得其布局信息,返回的信息在 `callBack` 
中,格式参考如下:
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/modules/index.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/index.md 
b/doc/source/cn/references/modules/index.md
index 28756f4..8171de2 100644
--- a/doc/source/cn/references/modules/index.md
+++ b/doc/source/cn/references/modules/index.md
@@ -10,7 +10,7 @@ version: 2.1
 
 ## 如何使用
 
-你可以简单的通过类似 `require('@weex-module/name')` 这æ 
·çš„语法获取一个模块的 API,比如:
+你可以简单的通过类似 `weex.requireModule('name')` 这æ 
·çš„语法获取一个模块的 API,比如:
 
 ```html
 <script>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-android.md 
b/doc/source/references/advanced/extend-to-android.md
index d4d2b6d..e10b906 100644
--- a/doc/source/references/advanced/extend-to-android.md
+++ b/doc/source/references/advanced/extend-to-android.md
@@ -65,7 +65,7 @@ WXSDKEngine.registerModule("event", WXEventModule.class);
 Now `event` moudle is avaiable in weex, use the module like this:
 
 ```javascript
-var event = require('@weex-module/event');
+var event = weex.requireModule('event');
 event.openURL("http://www.github.com";);
 ```
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/components/div.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/div.md 
b/doc/source/references/components/div.md
index 2531a31..d82ad0d 100644
--- a/doc/source/references/components/div.md
+++ b/doc/source/references/components/div.md
@@ -23,7 +23,7 @@ There is no specific attribute for this component.
 
 ### Styles
 
-**common styles**: check out the [common styles](../common-attrs.html)
+**common styles**: check out the [common styles](../common-style.html)
 
 - support flexbox related styles
 - support box model related styles

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/dom.md 
b/doc/source/references/modules/dom.md
index 6e69092..bfd80e0 100644
--- a/doc/source/references/modules/dom.md
+++ b/doc/source/references/modules/dom.md
@@ -17,7 +17,7 @@ A series of dom apis that sending virtual-dom's messages to 
the native renderer
 
 Scroll the page to the specified node. This API should only be used on the 
element in the `scroller` or `list` component.
 
-<del>This API can be used by calling the VM's method `$scrollTo` 
**(deprecated)**.</del> You can use 
`require('@weex-module/dom').scrollToElement` to call this API in your `.we` 
file.
+<del>This API can be used by calling the VM's method `$scrollTo` 
**(deprecated)**.</del> You can use `weex.requireModule('dom').scrollToElement` 
to call this API in your `.we` file.
 
 #### Arguments
 
@@ -116,7 +116,7 @@ Scroll the page to the specified node. This API should only 
be used on the eleme
 
 [try it](../../examples/dom-scroll.html)
 
-### getComponentRect(ref,callback)<sup>v0.9.4+</sup>
+### getComponentRect(ref,callback) <span class="api-version">v0.9.4+</span>
 
 You can get the view rectangle information of named element.
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/storage.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/storage.md 
b/doc/source/references/modules/storage.md
index 3db4f29..b7bcf43 100644
--- a/doc/source/references/modules/storage.md
+++ b/doc/source/references/modules/storage.md
@@ -46,7 +46,7 @@ When passed a key name, will remove that key from the storage.
 ##### Example
 
 ```javascript
-var storage = require('@weex-module/storage');
+var storage = weex.requireModule('storage');
 storage.removeItem('foo', function(e) {
   // callback. 'e' is an object that contains 'result' and 'data'.
   // e.result will return 'success' or 'failed' according to the executing 
result.

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/webview.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/webview.md 
b/doc/source/references/modules/webview.md
index 096e4d3..d5dfbdd 100644
--- a/doc/source/references/modules/webview.md
+++ b/doc/source/references/modules/webview.md
@@ -22,7 +22,7 @@ Loads the previous location in the history stack.
 #### Example
 
 ```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
 var webElement = this.$el('webview');
 webview.goBack(webElement);
 ```
@@ -38,7 +38,7 @@ Loads the next location in the history stack.
 #### Example
 
 ```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
 var webElement = this.$el('webview');
 webview.goForward(webElement);
 ```
@@ -54,7 +54,7 @@ Reloads the current web page.
 #### Example
 
 ```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
 var webElement = this.$el('webview');
 webview.reload(webElement.ref);
 ```

Reply via email to