You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/01 07:21:02 UTC

[02/51] [partial] incubator-weex-site git commit: Site updated: 2017-02-01 15:00:00

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/14041490/content/cn/v-0.10/references/common-style.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/common-style.html b/content/cn/v-0.10/references/common-style.html
new file mode 100644
index 0000000..5685c08
--- /dev/null
+++ b/content/cn/v-0.10/references/common-style.html
@@ -0,0 +1,1243 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u901a\u7528\u6837\u5f0f | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u901a\u7528\u6837\u5f0f\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002
+\u76d2\u6a21\u578b
+Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50\u3002\u6211\u4eec\u4e00\u822c\u5728\u8ba8\u8bba\u8bbe\u8ba1\u6216\u5e03\u5c40\u65f6\uff0c\u4f1a\u63d0\u5230\u300c\u76d2\u6a21\u578b\u300d\u8fd9\u4e2a\u6982\u5ff5\u3002
+\u76d2\u6a21\u578b\u63cf\u8ff0\u4e86\u4e00\u4e2a\u5143\u7d20\u6240\u5360\u7528\u7684\u7a7a\u95f4\u3002\u6bcf\u4e00\u4e2a\u76d2\u5b50\u6709\u56db\u6761\u8fb9\u754c\uff1a\u5916\u8fb9\u8ddd\u8fb9\u754c margin edge, \u8fb9\u6846\u8fb9\u754c border edge, \u5185\u8fb9\u8ddd\u8fb9\u754c padding edge \u4e0e\u5185\u5bb9\u8fb9\u754c content edge\u3002">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u901a\u7528\u6837\u5f0f">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/references/common-style.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u901a\u7528\u6837\u5f0f\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002
+\u76d2\u6a21\u578b
+Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50\u3002\u6211\u4eec\u4e00\u822c\u5728\u8ba8\u8bba\u8bbe\u8ba1\u6216\u5e03\u5c40\u65f6\uff0c\u4f1a\u63d0\u5230\u300c\u76d2\u6a21\u578b\u300d\u8fd9\u4e2a\u6982\u5ff5\u3002
+\u76d2\u6a21\u578b\u63cf\u8ff0\u4e86\u4e00\u4e2a\u5143\u7d20\u6240\u5360\u7528\u7684\u7a7a\u95f4\u3002\u6bcf\u4e00\u4e2a\u76d2\u5b50\u6709\u56db\u6761\u8fb9\u754c\uff1a\u5916\u8fb9\u8ddd\u8fb9\u754c margin edge, \u8fb9\u6846\u8fb9\u754c border edge, \u5185\u8fb9\u8ddd\u8fb9\u754c padding edge \u4e0e\u5185\u5bb9\u8fb9\u754c content edge\u3002">
+<meta property="og:image" content="http://alibaba.github.io/weex/doc/images/css-boxmodel.png">
+<meta property="og:image" content="http://alibaba.github.io/weex/doc/images/css-flexbox-justify.svg">
+<meta property="og:image" content="http://alibaba.github.io/weex/doc/images/css-flexbox-align.jpg">
+<meta property="og:image" content="https://weex.apache.org/images/style_1.jpg">
+<meta property="og:image" content="https://weex.apache.org/images/style_2.jpg">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.955Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u901a\u7528\u6837\u5f0f">
+<meta name="twitter:description" content="\u901a\u7528\u6837\u5f0f\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002
+\u76d2\u6a21\u578b
+Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50\u3002\u6211\u4eec\u4e00\u822c\u5728\u8ba8\u8bba\u8bbe\u8ba1\u6216\u5e03\u5c40\u65f6\uff0c\u4f1a\u63d0\u5230\u300c\u76d2\u6a21\u578b\u300d\u8fd9\u4e2a\u6982\u5ff5\u3002
+\u76d2\u6a21\u578b\u63cf\u8ff0\u4e86\u4e00\u4e2a\u5143\u7d20\u6240\u5360\u7528\u7684\u7a7a\u95f4\u3002\u6bcf\u4e00\u4e2a\u76d2\u5b50\u6709\u56db\u6761\u8fb9\u754c\uff1a\u5916\u8fb9\u8ddd\u8fb9\u754c margin edge, \u8fb9\u6846\u8fb9\u754c border edge, \u5185\u8fb9\u8ddd\u8fb9\u754c padding edge \u4e0e\u5185\u5bb9\u8fb9\u754c content edge\u3002">
+<meta name="twitter:image" content="http://alibaba.github.io/weex/doc/images/css-boxmodel.png">
+  
+    <link rel="alternate" href="/atom.xml" title="Weex" type="application/atom+xml">
+  
+  
+    <link rel="icon" href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png">
+  
+  
+    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
+  
+  <link rel="stylesheet" href="/css/style.css">
+  <link rel="stylesheet" href="/css/swiper.min.css">
+</head>
+
+<body id="references" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "references";
+    window.ROOT = "/"
+  </script>
+  <header id="header">
+  <div class="navbar">
+    <a id="logo" href="/cn/">
+      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
+    </a>
+    <div class="main-nav">
+      <ul class="links">
+        <li><a href="/cn/guide">\u6559\u7a0b</a></li>
+        <li><a href="/cn/references">\u624b\u518c</a></li>
+        <li><a href="/cn/faq.html">FAQ</a></li>
+        <li class="dropdown">
+            <a href="javascript:;">\u4e0b\u8f7d</a>
+            <ul class="dropdown-menu subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+      </ul>
+      <ul class="info">
+        <li><a href="https://github.com/alibaba/weex/" target="_blank"><span class="btn-github iconfont icon-github"></span></a></li>
+      </ul>
+      <ul class="tools">
+        <li>
+          <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-header" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+        </li>
+        <!--<li></li>-->
+      </ul>
+    </div>
+  </div>
+  <div id="mobile-nav">
+    <a id="logo" href="/cn/">
+      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
+    </a>
+    <a class="btn-menu"><span class="iconfont icon-nav"></span></a>
+  </div>
+</header>
+  <div id="sidebar" class="">
+  <div class="sidebar-menu">
+    
+      <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-sidebar" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+      
+
+
+<div class="summary">
+  <h2 class="part-title">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link  ">Bootstrap</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/special-element.html" class="sidebar-link  ">\u7279\u6b8a\u5143\u7d20</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/component-defs.html" class="sidebar-link  ">ViewModel \u9009\u9879</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/api.html" class="sidebar-link  ">ViewModel APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-attrs.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-style.html" class="sidebar-link current ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/units.html" class="sidebar-link  ">CSS \u5355\u4f4d</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/wxc/index.html" class="sidebar-link  ">\u5b98\u65b9\u6269\u5c55\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-navpage.html" class="sidebar-link  ">&lt;wxc-navpage&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-tabbar.html" class="sidebar-link  ">&lt;wxc-tabbar&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/animation.html" class="sidebar-link  ">animation</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/clipboard.html" class="sidebar-link  ">clipboard</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/dom.html" class="sidebar-link  ">dom</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/modal.html" class="sidebar-link  ">modal</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/navigator.html" class="sidebar-link  ">navigator</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/storage.html" class="sidebar-link  ">storage</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/stream.html" class="sidebar-link  ">stream</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/webview.html" class="sidebar-link  ">webview</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/globalevent.html" class="sidebar-link  ">globalEvent</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/specs/index.html" class="sidebar-link  ">JS Bundle format (\u82f1)</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/js-framework-apis.html" class="sidebar-link  ">JS Framework APIs (\u82f1)</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/virtual-dom-apis.html" class="sidebar-link  ">Virtual DOM APIs</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/cheatsheet.html" class="sidebar-link  ">Weex \u5feb\u67e5\u624b\u518c</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+    
+    <a class="btn-close-sidebar iconfont  icon-close"></a>
+  </div>
+</div>
+  <div class="article-wrapper page-layout">
+  <div class="doc-nav">
+    
+
+
+<div class="summary">
+  <h2 class="part-title">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link  ">Bootstrap</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/special-element.html" class="sidebar-link  ">\u7279\u6b8a\u5143\u7d20</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/component-defs.html" class="sidebar-link  ">ViewModel \u9009\u9879</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/api.html" class="sidebar-link  ">ViewModel APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-attrs.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-style.html" class="sidebar-link current ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/units.html" class="sidebar-link  ">CSS \u5355\u4f4d</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/wxc/index.html" class="sidebar-link  ">\u5b98\u65b9\u6269\u5c55\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-navpage.html" class="sidebar-link  ">&lt;wxc-navpage&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-tabbar.html" class="sidebar-link  ">&lt;wxc-tabbar&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/animation.html" class="sidebar-link  ">animation</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/clipboard.html" class="sidebar-link  ">clipboard</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/dom.html" class="sidebar-link  ">dom</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/modal.html" class="sidebar-link  ">modal</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/navigator.html" class="sidebar-link  ">navigator</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/storage.html" class="sidebar-link  ">storage</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/stream.html" class="sidebar-link  ">stream</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/webview.html" class="sidebar-link  ">webview</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/globalevent.html" class="sidebar-link  ">globalEvent</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/specs/index.html" class="sidebar-link  ">JS Bundle format (\u82f1)</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/js-framework-apis.html" class="sidebar-link  ">JS Framework APIs (\u82f1)</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/virtual-dom-apis.html" class="sidebar-link  ">Virtual DOM APIs</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/cheatsheet.html" class="sidebar-link  ">Weex \u5feb\u67e5\u624b\u518c</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-references">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u901a\u7528\u6837\u5f0f
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.955Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u901a\u7528\u6837\u5f0f"><a href="#\u901a\u7528\u6837\u5f0f" class="headerlink" title="\u901a\u7528\u6837\u5f0f"></a>\u901a\u7528\u6837\u5f0f</h1><p>\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002</p>
+<h2 id="\u76d2\u6a21\u578b"><a href="#\u76d2\u6a21\u578b" class="headerlink" title="\u76d2\u6a21\u578b"></a>\u76d2\u6a21\u578b</h2><p><img src="http://alibaba.github.io/weex/doc/images/css-boxmodel.png" alt="box model @300*"></p>
+<p>Weex \u76d2\u6a21\u578b\u57fa\u4e8e <a href="https://www.w3.org/TR/css3-box/" target="_blank" rel="external">CSS \u76d2\u6a21\u578b</a>\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50\u3002\u6211\u4eec\u4e00\u822c\u5728\u8ba8\u8bba\u8bbe\u8ba1\u6216\u5e03\u5c40\u65f6\uff0c\u4f1a\u63d0\u5230\u300c\u76d2\u6a21\u578b\u300d\u8fd9\u4e2a\u6982\u5ff5\u3002</p>
+<p>\u76d2\u6a21\u578b\u63cf\u8ff0\u4e86\u4e00\u4e2a\u5143\u7d20\u6240\u5360\u7528\u7684\u7a7a\u95f4\u3002\u6bcf\u4e00\u4e2a\u76d2\u5b50\u6709\u56db\u6761\u8fb9\u754c\uff1a\u5916\u8fb9\u8ddd\u8fb9\u754c margin edge, \u8fb9\u6846\u8fb9\u754c border edge, \u5185\u8fb9\u8ddd\u8fb9\u754c padding edge \u4e0e\u5185\u5bb9\u8fb9\u754c content edge\u3002\u8fd9\u56db\u5c42\u8fb9\u754c\uff0c\u5f62\u6210\u4e00\u5c42\u5c42\u7684\u76d2\u5b50\u5305\u88f9\u8d77\u6765\uff0c\u8fd9\u5c31\u662f\u76d2\u6a21\u578b\u5927\u4f53\u4e0a\u7684\u542b\u4e49\u3002</p>
+<p><strong>\u6ce8\u610f\uff1a</strong><br>Weex \u5bf9\u4e8e\u957f\u5ea6\u503c\u76ee\u524d\u53ea\u652f\u6301<em>\u50cf\u7d20</em>\u503c\uff0c\u5355\u4f4d\u53ef\u7701\u7565\uff0c\u4e0d\u652f\u6301\u76f8\u5bf9\u5355\u4f4d\uff08<code>em</code>\u3001<code>rem</code>\uff09\u3002</p>
+<ul>
+<li><code>width {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>height {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><p><code>padding {length}</code>\uff1a\u5185\u8fb9\u8ddd\uff0c\u5185\u5bb9\u548c\u8fb9\u6846\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9ed8\u8ba4\u503c 0</p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>padding-left {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>padding-right {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>padding-top {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>padding-bottom {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+</ul>
+</li>
+<li><p><code>margin</code>\uff1a</p>
+<p>\u5916\u8fb9\u8ddd\uff0c\u5143\u7d20\u548c\u5143\u7d20\u4e4b\u95f4\u7684\u7a7a\u767d\u8ddd\u79bb\u3002\u503c\u7c7b\u578b\u4e3a length\uff0c\u9ed8\u8ba4\u503c 0</p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>margin-left {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>margin-right {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>margin-top {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+<li><code>margin-bottom {length}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c 0</li>
+</ul>
+</li>
+<li><p>border\uff1a</p>
+<p>\u8bbe\u5b9a\u8fb9\u6846\uff0c<code>border</code> \u76ee\u524d\u4e0d\u652f\u6301\u7c7b\u4f3c\u8fd9\u6837 <code>border: 1 solid #ff0000;</code> \u7684\u7ec4\u5408\u5199\u6cd5\u3002</p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><p><code>border-style</code>\uff1a</p>
+<p>\u8bbe\u5b9a\u8fb9\u6846\u6837\u5f0f\uff0c\u503c\u7c7b\u578b\u4e3a string\uff0c\u53ef\u9009\u503c\u4e3a <code>solid</code> | <code>dashed</code> | <code>dotted</code>\uff0c\u9ed8\u8ba4\u503c <code>solid</code></p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>border-left-style {string}</code>\uff1a\u53ef\u9009\u503c\u4e3a <code>solid</code> | <code>dashed</code> | <code>dotted</code>\uff0c\u9ed8\u8ba4\u503c <code>solid</code></li>
+<li><code>border-top-style {string}</code>\uff1a\u53ef\u9009\u503c\u4e3a <code>solid</code> | <code>dashed</code> | <code>dotted</code>\uff0c\u9ed8\u8ba4\u503c <code>solid</code></li>
+<li><code>border-right-style {string}</code>\uff1a\u53ef\u9009\u503c\u4e3a <code>solid</code> | <code>dashed</code> | <code>dotted</code>\uff0c\u9ed8\u8ba4\u503c <code>solid</code></li>
+<li><code>border-bottom-style {string}</code>\uff1a\u53ef\u9009\u503c\u4e3a <code>solid</code> | <code>dashed</code> | <code>dotted</code>\uff0c\u9ed8\u8ba4\u503c <code>solid</code></li>
+</ul>
+</li>
+<li><p><code>border-width {length}</code>\uff1a</p>
+<p>\u8bbe\u5b9a\u8fb9\u6846\u5bbd\u5ea6\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>border-left-width {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-top-width {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-right-width {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-bottom-width {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+</ul>
+</li>
+<li><p><code>border-color {color}</code>\uff1a</p>
+<p>\u8bbe\u5b9a\u8fb9\u6846\u989c\u8272\uff0c\u9ed8\u8ba4\u503c <code>#000000</code></p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>border-left-color {color}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c <code>#000000</code></li>
+<li><code>border-top-color {color}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c <code>#000000</code></li>
+<li><code>border-right-color {color}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c <code>#000000</code></li>
+<li><code>border-bottom-color {color}</code>\uff1a\uff0c\u9ed8\u8ba4\u503c <code>#000000</code></li>
+</ul>
+</li>
+<li><p><code>border-radius {length}</code>\uff1a</p>
+<p>\u8bbe\u5b9a\u5706\u89d2\uff0c\u9ed8\u8ba4\u503c 0</p>
+<p>\u53ef\u6709\u5982\u4e0b\u5199\u6cd5\uff1a</p>
+<ul>
+<li><code>border-bottom-left-radius {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-bottom-right-radius {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-top-left-radius {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+<li><code>border-top-right-radius {length}</code>\uff1a\uff0c\u975e\u8d1f\u503c, \u9ed8\u8ba4\u503c 0</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<p>\u6ce8\u610f\uff1a\u76ee\u524d\u5728 <code>&lt;image&gt;</code> \u548c <code>&lt;text&gt;</code> \u7ec4\u4ef6\u4e0a\u5c1a\u65e0\u6cd5\u53ea\u5b9a\u4e49\u4e00\u4e2a\u6216\u51e0\u4e2a\u89d2\u7684 <code>border-radius</code>\u3002\u6bd4\u5982\u4f60\u65e0\u6cd5\u5728\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u4e0a\u4f7f\u7528 <code>border-top-left-radius</code>\u3002</p>
+<p>Weex \u76d2\u6a21\u578b\u7684 <code>box-sizing</code> \u9ed8\u8ba4\u4e3a <code>border-box</code>\uff0c\u5373\u76d2\u5b50\u7684\u5bbd\u9ad8\u5305\u542b\u5185\u5bb9\u3001\u5185\u8fb9\u8ddd\u548c\u8fb9\u6846\u7684\u5bbd\u5ea6\uff0c\u4e0d\u5305\u542b\u5916\u8fb9\u8ddd\u7684\u5bbd\u5ea6\u3002</p>
+<h3 id="\u793a\u4f8b\uff1a"><a href="#\u793a\u4f8b\uff1a" class="headerlink" title="\u793a\u4f8b\uff1a"></a>\u793a\u4f8b\uff1a</h3><figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">image</span>  <span class="attr">style</span>=<span class="string">"width: 400; height: 200; margin-left: 20;"</span> <span class="attr">src</span>=<span class="string">"https://g.alicdn.com/mtb/lab-zikuan/0.0.18/weex/weex_logo_blue@3x.png"</span>&gt;</span><span class="tag">&lt;/<span class="name">image</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div></pre></td></tr></table></figure>
+<h2 id="Flexbox"><a href="#Flexbox" class="headerlink" title="Flexbox"></a>Flexbox</h2><p>Weex \u5e03\u5c40\u6a21\u578b\u57fa\u4e8e CSS <a href="http://www.w3.org/TR/css3-flexbox/" target="_blank" rel="external"><code>Flexbox</code></a>\uff0c\u4ee5\u4fbf\u6240\u6709\u9875\u9762\u5143\u7d20\u7684\u6392\u7248\u80fd\u591f\u4e00\u81f4\u53ef\u9884\u6d4b\uff0c\u540c\u65f6\u9875\u9762\u5e03\u5c40\u80fd\u9002\u5e94\u5404\u79cd\u8bbe\u5907\u6216\u8005\u5c4f\u5e55\u5c3a\u5bf8\u3002</p>
+<p>Flexbox \u5305\u542b flex \u5bb9\u5668\u548c flex \u6210\u5458\u9879\u3002\u5982\u679c\u4e00\u4e2a Weex \u5143\u7d20\u53ef\u4ee5\u5bb9\u7eb3\u5176\u4ed6\u5143\u7d20\uff0c\u90a3\u4e48\u5b83\u5c31\u6210\u4e3a flex \u5bb9\u5668\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cflexbox \u7684\u8001\u7248\u89c4\u8303\u76f8\u8f83\u65b0\u7248\u6709\u4e9b\u51fa\u5165\uff0c\u6bd4\u5982\u662f\u5426\u80fd\u652f\u6301 wrapping\u3002\u8fd9\u4e9b\u90fd\u63cf\u8ff0\u5728 W3C \u7684\u5de5\u4f5c\u8349\u6848\u4e2d\u4e86\uff0c\u4f60\u9700\u8981\u6ce8\u610f\u4e0b\u65b0\u8001\u7248\u672c\u4e4b\u95f4\u7684\u4e0d\u540c\u3002\u53e6\u5916\uff0c\u8001\u7248\u672c\u53ea\u5728\u5b89\u5353 4.4 \u7248\u4ee5\u4e0b\u5f97\u5230\u652f\u6301\u3002</p>
+<h3 id="Flex-\u5bb9\u5668"><a href="#Flex-\u5bb9\u5668" class="headerlink" title="Flex \u5bb9\u5668"></a>Flex \u5bb9\u5668</h3><p>\u5728 Weex \u4e2d\uff0cFlexbox \u662f\u9ed8\u8ba4\u4e14\u552f\u4e00\u7684\u5e03\u5c40\u6a21\u578b\uff0c\u6240\u4ee5\u4f60\u4e0d\u9700\u8981\u624b\u52a8\u4e3a\u5143\u7d20\u6dfb\u52a0 <code>display: flex;</code> \u5c5e\u6027\u3002</p>
+<ul>
+<li><p><code>flex-direction</code>\uff1a</p>
+<p>\u5b9a\u4e49\u4e86 flex \u5bb9\u5668\u4e2d flex \u6210\u5458\u9879\u7684\u6392\u5217\u65b9\u5411\u3002\u53ef\u9009\u503c\u4e3a <code>row</code> | <code>column</code>\uff0c\u9ed8\u8ba4\u503c\u4e3a <code>column</code></p>
+<ul>
+<li><code>column</code>\uff1a\u4ece\u4e0a\u5230\u4e0b\u6392\u5217\u3002</li>
+<li><code>row</code>\uff1a\u4ece\u5de6\u5230\u53f3\u6392\u5217\u3002</li>
+</ul>
+</li>
+<li><p><code>justify-content</code>\uff1a</p>
+<p>\u5b9a\u4e49\u4e86 flex \u5bb9\u5668\u4e2d flex \u6210\u5458\u9879\u5728\u4e3b\u8f74\u65b9\u5411\u4e0a\u5982\u4f55\u6392\u5217\u4ee5\u5904\u7406\u7a7a\u767d\u90e8\u5206\u3002\u53ef\u9009\u503c\u4e3a <code>flex-start</code> | <code>flex-end</code> | <code>center</code> | <code>space-between</code>\uff0c\u9ed8\u8ba4\u503c\u4e3a <code>flex-start</code>\u3002</p>
+<ul>
+<li><code>flex-start</code>\uff1a\u662f\u9ed8\u8ba4\u503c\uff0c\u6240\u6709\u7684 flex \u6210\u5458\u9879\u90fd\u6392\u5217\u5728\u5bb9\u5668\u7684\u524d\u90e8\uff1b</li>
+<li><code>flex-end</code>\uff1a\u5219\u610f\u5473\u7740\u6210\u5458\u9879\u6392\u5217\u5728\u5bb9\u5668\u7684\u540e\u90e8\uff1b</li>
+<li><code>center</code>\uff1a\u5373\u4e2d\u95f4\u5bf9\u9f50\uff0c\u6210\u5458\u9879\u6392\u5217\u5728\u5bb9\u5668\u4e2d\u95f4\u3001\u4e24\u8fb9\u7559\u767d\uff1b</li>
+<li><code>space-between</code>\uff1a\u8868\u793a\u4e24\u7aef\u5bf9\u9f50\uff0c\u7a7a\u767d\u5747\u5300\u5730\u586b\u5145\u5230 flex \u6210\u5458\u9879\u4e4b\u95f4\u3002</li>
+</ul>
+<p><img src="http://alibaba.github.io/weex/doc/images/css-flexbox-justify.svg" alt="justify-content @400*"></p>
+</li>
+<li><p><code>align-items</code>\uff1a</p>
+<p>\u5b9a\u4e49\u4e86 flex \u5bb9\u5668\u4e2d flex \u6210\u5458\u9879\u5728\u7eb5\u8f74\u65b9\u5411\u4e0a\u5982\u4f55\u6392\u5217\u4ee5\u5904\u7406\u7a7a\u767d\u90e8\u5206\u3002\u53ef\u9009\u503c\u4e3a <code>stretch</code> | <code>flex-start</code> | <code>center</code> | <code>flex-end</code>\uff0c\u9ed8\u8ba4\u503c\u4e3a <code>stretch</code>\u3002</p>
+<ul>
+<li><code>stretch</code> \u662f\u9ed8\u8ba4\u503c\uff0c\u5373\u62c9\u4f38\u9ad8\u5ea6\u81f3 flex \u5bb9\u5668\u7684\u5927\u5c0f\uff1b</li>
+<li><code>flex-start</code> \u5219\u662f\u4e0a\u5bf9\u9f50\uff0c\u6240\u6709\u7684\u6210\u5458\u9879\u6392\u5217\u5728\u5bb9\u5668\u9876\u90e8\uff1b</li>
+<li><code>flex-end</code> \u662f\u4e0b\u5bf9\u9f50\uff0c\u6240\u6709\u7684\u6210\u5458\u9879\u6392\u5217\u5728\u5bb9\u5668\u5e95\u90e8\uff1b</li>
+<li><code>center</code> \u662f\u4e2d\u95f4\u5bf9\u9f50\uff0c\u6240\u6709\u6210\u5458\u9879\u90fd\u5782\u76f4\u5730\u5c45\u4e2d\u663e\u793a\u3002</li>
+</ul>
+<p><img src="http://alibaba.github.io/weex/doc/images/css-flexbox-align.jpg" alt="align-items @400*"></p>
+</li>
+</ul>
+<h3 id="Flex-\u6210\u5458\u9879"><a href="#Flex-\u6210\u5458\u9879" class="headerlink" title="Flex \u6210\u5458\u9879"></a>Flex \u6210\u5458\u9879</h3><p>flex \u5c5e\u6027\u5b9a\u4e49\u4e86 flex \u6210\u5458\u9879\u53ef\u4ee5\u5360\u7528\u5bb9\u5668\u4e2d\u5269\u4f59\u7a7a\u95f4\u7684\u5927\u5c0f\u3002\u5982\u679c\u6240\u6709\u7684\u6210\u5458\u9879\u8bbe\u7f6e\u76f8\u540c\u7684\u503c <code>flex: 1</code>\uff0c\u5b83\u4eec\u5c06\u5e73\u5747\u5206\u914d\u5269\u4f59\u7a7a\u95f4. \u5982\u679c\u4e00\u4e2a\u6210\u5458\u9879\u8bbe\u7f6e\u7684\u503c\u4e3a <code>flex: 2</code>\uff0c\u5176\u5b83\u7684\u6210\u5458\u9879\u8bbe\u7f6e\u7684\u503c\u4e3a <code>flex: 1</code>\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6210\u5458\u9879\u6240\u5360\u7528\u7684\u5269\u4f59\u7a7a\u95f4\u662f\u5176\u5b83\u6210\u5458\u9879\u76842\u500d\u3002</p>
+<ul>
+<li><code>flex {number}</code>\uff1a\u503c\u4e3a number \u7c7b\u578b\u3002</li>
+</ul>
+<h3 id="\u793a\u4f8b"><a href="#\u793a\u4f8b" class="headerlink" title="\u793a\u4f8b"></a>\u793a\u4f8b</h3><p>\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u683c\u5e03\u5c40\u3002</p>
+<p><img src="images/style_1.jpg" alt="mobile_preview"></p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">repeat</span>=<span class="string">"(i, v) in list"</span> <span class="attr">class</span>=<span class="string">"row"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">div</span> <span class="attr">repeat</span>=<span class="string">"(k, text) in v"</span> <span class="attr">class</span>=<span class="string">"item"</span>&gt;</span></div><div class="line">        <span class="tag">&lt;<span class="name">div</span>&gt;</span></div><div class="line">          <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;text&#125;&#125;<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div>
 <div class="line">        <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">      <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="css"></span></div><div class="line">  <span class="selector-class">.item</span>&#123;</div><div class="line">    <span class="attribute">flex</span>:<span class="number">1</span>;</div><div class="line">    <span class="attribute">justify-content</span>: center;</div><div class="line">    <span class="attribute">align-items</span>:center;</div><div class="line">    <span class="attribute">border-width</span>:<span class="number">1</span>;
 </div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.row</span>&#123;</div><div class="line">    <span class="attribute">flex-direction</span>: row;</div><div class="line">    <span class="attribute">height</span>:<span class="number">80</span>;</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line">  <span class="built_in">module</span>.exports = &#123;</div><div class="line">    <span class="attr">data</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">      <span class="keyword">return</span> &#123;</div><div class="line">        <span class="attr">list</span>:[</div><div class="line">          [<span class="string">'A'</span>, <span class="string">'B'</s
 pan>, <span class="string">'C'</span>],</div><div class="line">          [<span class="string">'D'</span>, <span class="string">'E'</span>, <span class="string">'F'</span>],</div><div class="line">          [<span class="string">'G'</span>, <span class="string">'H'</span>, <span class="string">'I'</span>]</div><div class="line">        ]</div><div class="line">      &#125;</div><div class="line">    &#125;</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
+<p><a href="http://dotwe.org/ee6a898fcac2242308c24fe5882c52ac" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u4e00\u4e2a\u5728\u76f8\u5bf9\u4e8e\u5c4f\u5e55\u6c34\u5e73\u5c45\u4e2d\uff0c\u5168\u5c4f\u5c45\u4e2d\u7684 <code>&lt;div&gt;</code>\u3002</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wrapper"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"box"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="css"></span></div><div class="line">  <span class="selector-class">.wrapper</span> &#123;</div><div class="line">    <span class="attribu
 te">position</span>: absolute;</div><div class="line">    <span class="attribute">top</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">right</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">bottom</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">left</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">background-color</span>: <span class="number">#cccccc</span>;</div><div class="line">    <span class="attribute">justify-content</span>: center;</div><div class="line">    <span class="attribute">align-items</span>: center;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.box</span> &#123;</div><div class="line">    <span class="attribute">width</span>: <span class="number">200</span>;</div><div class="line">    <span class="attribute">height</span>: <span class="number">200</span>;</div><d
 iv class="line">    <span class="attribute">background-color</span>: <span class="number">#fc0000</span>;</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></div></pre></td></tr></table></figure>
+<p><a href="http://dotwe.org/a76cd89b37c72d308ed576131830e877" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u5b9a\u4f4d"><a href="#\u5b9a\u4f4d" class="headerlink" title="\u5b9a\u4f4d"></a>\u5b9a\u4f4d</h2><p>Weex \u652f\u6301 <code>position</code> \u5b9a\u4f4d\uff0c\u7528\u6cd5\u4e0e CSS position \u7c7b\u4f3c\u3002\u4e3a\u5143\u7d20\u8bbe\u7f6e <code>position</code> \u540e\uff0c\u53ef\u901a\u8fc7 <code>top</code>\u3001<code>right</code>\u3001<code>bottom</code>\u3001<code>left</code> \u56db\u4e2a\u5c5e\u6027\u8bbe\u7f6e\u5143\u7d20\u5750\u6807\u3002</p>
+<ul>
+<li><p><code>position {string}</code>\uff1a</p>
+<p>\u8bbe\u7f6e\u5b9a\u4f4d\u7c7b\u578b\u3002\u53ef\u9009\u503c\u4e3a <code>relative</code> | <code>absolute</code> | <code>fixed</code> | <code>sticky</code>\uff0c\u9ed8\u8ba4\u503c\u4e3a <code>relative</code>\u3002</p>
+<ul>
+<li><code>relative</code> \u662f\u9ed8\u8ba4\u503c\uff0c\u6307\u7684\u662f\u76f8\u5bf9\u5b9a\u4f4d\uff1b</li>
+<li><code>absolute</code> \u662f\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u4ee5\u5143\u7d20\u7684\u5bb9\u5668\u4f5c\u4e3a\u53c2\u8003\u7cfb\uff1b</li>
+<li><code>fixed</code> \u4fdd\u8bc1\u5143\u7d20\u5728\u9875\u9762\u7a97\u53e3\u4e2d\u7684\u5bf9\u5e94\u4f4d\u7f6e\u663e\u793a\uff1b</li>
+<li><code>sticky</code> \u6307\u7684\u662f\u4ec5\u5f53\u5143\u7d20\u6eda\u52a8\u5230\u9875\u9762\u4e4b\u5916\u65f6\uff0c\u5143\u7d20\u4f1a\u56fa\u5b9a\u5728\u9875\u9762\u7a97\u53e3\u7684\u9876\u90e8\u3002</li>
+</ul>
+</li>
+<li><code>top {number}</code>\uff1a\u8ddd\u79bb\u4e0a\u65b9\u7684\u504f\u79fb\u91cf\uff0c\u9ed8\u8ba4\u4e3a 0\u3002</li>
+<li><code>bottom {number}</code>\uff1a\u8ddd\u79bb\u4e0b\u65b9\u7684\u504f\u79fb\u91cf\uff0c\u9ed8\u8ba4\u4e3a 0\u3002</li>
+<li><code>left {number}</code>\uff1a\u8ddd\u79bb\u5de6\u65b9\u7684\u504f\u79fb\u91cf\uff0c\u9ed8\u8ba4\u4e3a 0\u3002</li>
+<li><code>right {number}</code>\uff1a\u8ddd\u79bb\u53f3\u65b9\u7684\u504f\u79fb\u91cf\uff0c\u9ed8\u8ba4\u4e3a 0\u3002</li>
+</ul>
+<p><strong>\u6ce8\u610f\uff1a</strong></p>
+<ol>
+<li>Weex \u76ee\u524d\u4e0d\u652f\u6301 <code>z-index</code> \u8bbe\u7f6e\u5143\u7d20\u5c42\u7ea7\u5173\u7cfb\uff0c\u4f46\u9760\u540e\u7684\u5143\u7d20\u5c42\u7ea7\u66f4\u9ad8\uff0c\u56e0\u6b64\uff0c\u5bf9\u4e8e\u5c42\u7ea7\u9ad8\u7684\u5143\u7d20\uff0c\u53ef\u5c06\u5176\u6392\u5217\u5728\u540e\u9762\u3002</li>
+<li>\u5982\u679c\u5b9a\u4f4d\u5143\u7d20\u8d85\u8fc7\u5bb9\u5668\u8fb9\u754c\uff0c\u5728 Android \u4e0b\uff0c\u8d85\u51fa\u90e8\u5206\u5c06<strong>\u4e0d\u53ef\u89c1</strong>\uff0c\u539f\u56e0\u5728\u4e8e Android \u7aef\u5143\u7d20 <code>overflow</code> \u9ed8\u8ba4\u503c\u4e3a <code>hidden</code>\uff0c\u4f46\u76ee\u524d Android \u6682\u4e0d\u652f\u6301\u8bbe\u7f6e <code>overflow: visible</code>\u3002 </li>
+</ol>
+<h3 id="\u793a\u4f8b-1"><a href="#\u793a\u4f8b-1" class="headerlink" title="\u793a\u4f8b"></a>\u793a\u4f8b</h3><p><img src="images/style_2.jpg" alt="mobile_preview"></p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wrapper"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"box box1"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"box box2"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"box box3"</span>&gt;</span></div><div class="line"> 
    <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line">  <span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="css"></span></div><div class="line">  <span class="selector-class">.wrapper</span> &#123;</div><div class="line">    <span class="attribute">position</span>: absolute;</div><div class="line">    <span class="attribute">top</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">right</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">bottom</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">left</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">background-color</span>:
  <span class="number">#cccccc</span>;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.box</span> &#123;</div><div class="line">    <span class="attribute">width</span>: <span class="number">400</span>;</div><div class="line">    <span class="attribute">height</span>: <span class="number">400</span>;</div><div class="line">    <span class="attribute">position</span>: absolute;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.box1</span> &#123;</div><div class="line">    <span class="attribute">top</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">left</span>: <span class="number">0</span>;</div><div class="line">    <span class="attribute">background-color</span>: <span class="number">#ff0000</span>;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.box2</span> &#123;</div><div class="line">    <span class="attribute">top</span>: <s
 pan class="number">150</span>;</div><div class="line">    <span class="attribute">left</span>: <span class="number">150</span>;</div><div class="line">    <span class="attribute">background-color</span>: <span class="number">#0055dd</span>;</div><div class="line">  &#125;</div><div class="line">  <span class="selector-class">.box3</span> &#123;</div><div class="line">    <span class="attribute">top</span>: <span class="number">300</span>;</div><div class="line">    <span class="attribute">left</span>: <span class="number">300</span>;</div><div class="line">    <span class="attribute">background-color</span>: <span class="number">#00ff49</span>;</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></div></pre></td></tr></table></figure>
+<p><a href="http://dotwe.org/b04339de27cfabf0710e045c0079e56a" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u5176\u4ed6\u57fa\u672c\u6837\u5f0f"><a href="#\u5176\u4ed6\u57fa\u672c\u6837\u5f0f" class="headerlink" title="\u5176\u4ed6\u57fa\u672c\u6837\u5f0f"></a>\u5176\u4ed6\u57fa\u672c\u6837\u5f0f</h2><ul>
+<li><code>opacity {number}</code>\uff1a\u53d6\u503c\u8303\u56f4\u4e3a [0, 1] \u533a\u95f4\u3002\u9ed8\u8ba4\u503c\u662f 1\uff0c\u5373\u5b8c\u5168\u4e0d\u900f\u660e\uff1b0 \u662f\u5b8c\u5168\u900f\u660e\uff1b0.5 \u662f 50% \u7684\u900f\u660e\u5ea6\u3002</li>
+<li><code>background-color {color}</code>\uff1a\u8bbe\u5b9a\u5143\u7d20\u7684\u80cc\u666f\u8272\uff0c\u53ef\u9009\u503c\u4e3a\u8272\u503c\uff0c\u652f\u6301RGB\uff08 <code>rgb(255, 0, 0)</code> \uff09\uff1bRGBA\uff08 <code>rgba(255, 0, 0, 0.5)</code> \uff09\uff1b\u5341\u516d\u8fdb\u5236\uff08 <code>#ff0000</code> \uff09\uff1b\u7cbe\u7b80\u5199\u6cd5\u7684\u5341\u516d\u8fdb\u5236\uff08 <code>#f00</code> \uff09\uff1b\u8272\u503c\u5173\u952e\u5b57\uff08<code>red</code>\uff09\uff0c\u9ed8\u8ba4\u503c\u662f <code>transparent</code> \u3002</li>
+</ul>
+<p><strong>\u6ce8\u610f\uff1a</strong> <a href="./color-names.md">\u8272\u503c\u7684\u5173\u952e\u5b57\u5217\u8868</a>\u3002</p>
+<h2 id="\u4e0a\u624b\u6837\u5f0f"><a href="#\u4e0a\u624b\u6837\u5f0f" class="headerlink" title="\u4e0a\u624b\u6837\u5f0f"></a>\u4e0a\u624b\u6837\u5f0f</h2><p>\u5982\u679c\u5bf9\u4e8e\u6837\u5f0f\u5199\u6cd5\u9700\u8981\u66f4\u591a\u4e0a\u624b\u53c2\u8003\uff0c\u53ef\u53c2\u8003</p>
+<ul>
+<li><a href="">\u5982\u4f55\u505a\u51fa\u9ad8\u6027\u80fd\u957f\u5217\u8868</a></li>
+<li><a href="">\u5982\u4f55\u5e03\u5c40</a></li>
+<li>\u4ee5\u53ca\u6bcf\u4e2a\u7ec4\u4ef6\u7684\u6587\u6863\u4e2d\uff0c\u90fd\u6709\u5e38\u89c1\u7684\u4f8b\u5b50\u53ef\u4f9b\u53c2\u8003\u3002</li>
+</ul>
+<p>\u4f60\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u6765\u89c4\u5212 Weex \u9875\u9762\u7684\u6837\u5f0f\u3002</p>
+<ol>
+<li>\u5168\u5c40\u6837\u5f0f\u89c4\u5212\uff1a\u5c06\u6574\u4e2a\u9875\u9762\u5206\u5272\u6210\u5408\u9002\u7684\u6a21\u5757\u3002</li>
+<li>flex \u5e03\u5c40\uff1a\u6392\u5217\u548c\u5bf9\u9f50\u9875\u9762\u6a21\u5757\u3002</li>
+<li>\u5b9a\u4f4d\u76d2\u5b50\uff1a\u5b9a\u4f4d\u5e76\u8bbe\u7f6e\u504f\u79fb\u91cf\u3002</li>
+<li>\u7ec6\u8282\u6837\u5f0f\u5904\u7406\uff1a\u589e\u52a0\u7279\u5b9a\u7684\u5177\u4f53\u6837\u5f0f\u3002</li>
+</ol>
+
+  </div>
+  
+</article>
+</div>
+  
+  <footer id="footer">
+  <div class="row clearfix">
+    <div class="ali-logo">
+      <img src="//gw.alicdn.com/tps/TB1Ef93PXXXXXaXXpXXXXXXXXXX-252-126.png" alt="Alibaba">
+    </div>
+    <div class="dropdown select-lang">
+      <a href="javascript:;" class="dropdown-toggle">
+        Language
+        <span class="caret"></span>
+      </a>
+      <ul class="dropdown-menu">
+        <li>
+          <a href="/v-0.10/references/common-style.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/references/common-style.html">\u4e2d\u6587</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+  <div class="row">
+    <p><span>Released under </span><a href="">Apache License 2.0</a></p>
+  </div>
+  <div class="row clearfix">
+    <div class="cell"><span>Copyright(c) 2016 </span><a href="https://www.alibaba.com">Alibaba</a></div>
+    <div class="cell"><span>GroupMade by </span><a href="">\u963f\u91cc\u4e91UED AX</a></div>
+  </div>
+</footer>
+  <div style="display: none;">
+  <script src="//s95.cnzz.com/z_stat.php?id=1261102667&amp;web_id=1261102667" language="JavaScript"></script>
+</div>
+
+  <script src="/js/reqwest.js"></script>
+  <script src="/js/common.js"></script>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/14041490/content/cn/v-0.10/references/component-defs.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/component-defs.html b/content/cn/v-0.10/references/component-defs.html
new file mode 100644
index 0000000..8a5073f
--- /dev/null
+++ b/content/cn/v-0.10/references/component-defs.html
@@ -0,0 +1,1091 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>ViewModel \u9009\u9879 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &amp;lt;script&amp;gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
+module.exports = &amp;#123;  // a set of options here&amp;#125;
+\u6570\u636e\u548c\u65b9\u6cd5module.exports = &amp;#123;  data: function () &amp;#123;    return &amp;#123;x:">
+<meta property="og:type" content="website">
+<meta property="og:title" content="ViewModel \u9009\u9879">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/references/component-defs.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &amp;lt;script&amp;gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
+module.exports = &amp;#123;  // a set of options here&amp;#125;
+\u6570\u636e\u548c\u65b9\u6cd5module.exports = &amp;#123;  data: function () &amp;#123;    return &amp;#123;x:">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.955Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="ViewModel \u9009\u9879">
+<meta name="twitter:description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &amp;lt;script&amp;gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
+module.exports = &amp;#123;  // a set of options here&amp;#125;
+\u6570\u636e\u548c\u65b9\u6cd5module.exports = &amp;#123;  data: function () &amp;#123;    return &amp;#123;x:">
+  
+    <link rel="alternate" href="/atom.xml" title="Weex" type="application/atom+xml">
+  
+  
+    <link rel="icon" href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png">
+  
+  
+    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
+  
+  <link rel="stylesheet" href="/css/style.css">
+  <link rel="stylesheet" href="/css/swiper.min.css">
+</head>
+
+<body id="references" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "references";
+    window.ROOT = "/"
+  </script>
+  <header id="header">
+  <div class="navbar">
+    <a id="logo" href="/cn/">
+      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
+    </a>
+    <div class="main-nav">
+      <ul class="links">
+        <li><a href="/cn/guide">\u6559\u7a0b</a></li>
+        <li><a href="/cn/references">\u624b\u518c</a></li>
+        <li><a href="/cn/faq.html">FAQ</a></li>
+        <li class="dropdown">
+            <a href="javascript:;">\u4e0b\u8f7d</a>
+            <ul class="dropdown-menu subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+      </ul>
+      <ul class="info">
+        <li><a href="https://github.com/alibaba/weex/" target="_blank"><span class="btn-github iconfont icon-github"></span></a></li>
+      </ul>
+      <ul class="tools">
+        <li>
+          <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-header" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+        </li>
+        <!--<li></li>-->
+      </ul>
+    </div>
+  </div>
+  <div id="mobile-nav">
+    <a id="logo" href="/cn/">
+      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
+    </a>
+    <a class="btn-menu"><span class="iconfont icon-nav"></span></a>
+  </div>
+</header>
+  <div id="sidebar" class="">
+  <div class="sidebar-menu">
+    
+      <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-sidebar" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+      
+
+
+<div class="summary">
+  <h2 class="part-title">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link  ">Bootstrap</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/special-element.html" class="sidebar-link  ">\u7279\u6b8a\u5143\u7d20</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/component-defs.html" class="sidebar-link current ">ViewModel \u9009\u9879</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/api.html" class="sidebar-link  ">ViewModel APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-attrs.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-style.html" class="sidebar-link  ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/units.html" class="sidebar-link  ">CSS \u5355\u4f4d</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/wxc/index.html" class="sidebar-link  ">\u5b98\u65b9\u6269\u5c55\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-navpage.html" class="sidebar-link  ">&lt;wxc-navpage&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-tabbar.html" class="sidebar-link  ">&lt;wxc-tabbar&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/animation.html" class="sidebar-link  ">animation</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/clipboard.html" class="sidebar-link  ">clipboard</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/dom.html" class="sidebar-link  ">dom</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/modal.html" class="sidebar-link  ">modal</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/navigator.html" class="sidebar-link  ">navigator</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/storage.html" class="sidebar-link  ">storage</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/stream.html" class="sidebar-link  ">stream</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/webview.html" class="sidebar-link  ">webview</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/globalevent.html" class="sidebar-link  ">globalEvent</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/specs/index.html" class="sidebar-link  ">JS Bundle format (\u82f1)</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/js-framework-apis.html" class="sidebar-link  ">JS Framework APIs (\u82f1)</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/virtual-dom-apis.html" class="sidebar-link  ">Virtual DOM APIs</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/cheatsheet.html" class="sidebar-link  ">Weex \u5feb\u67e5\u624b\u518c</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+    
+    <a class="btn-close-sidebar iconfont  icon-close"></a>
+  </div>
+</div>
+  <div class="article-wrapper page-layout">
+  <div class="doc-nav">
+    
+
+
+<div class="summary">
+  <h2 class="part-title">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link  ">Bootstrap</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/special-element.html" class="sidebar-link  ">\u7279\u6b8a\u5143\u7d20</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/component-defs.html" class="sidebar-link current ">ViewModel \u9009\u9879</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/api.html" class="sidebar-link  ">ViewModel APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-attrs.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/common-style.html" class="sidebar-link  ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/units.html" class="sidebar-link  ">CSS \u5355\u4f4d</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/wxc/index.html" class="sidebar-link  ">\u5b98\u65b9\u6269\u5c55\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-navpage.html" class="sidebar-link  ">&lt;wxc-navpage&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/wxc/wxc-tabbar.html" class="sidebar-link  ">&lt;wxc-tabbar&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/animation.html" class="sidebar-link  ">animation</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/clipboard.html" class="sidebar-link  ">clipboard</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/dom.html" class="sidebar-link  ">dom</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/modal.html" class="sidebar-link  ">modal</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/navigator.html" class="sidebar-link  ">navigator</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/storage.html" class="sidebar-link  ">storage</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/stream.html" class="sidebar-link  ">stream</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/webview.html" class="sidebar-link  ">webview</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/modules/globalevent.html" class="sidebar-link  ">globalEvent</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/specs/index.html" class="sidebar-link  ">JS Bundle format (\u82f1)</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/js-framework-apis.html" class="sidebar-link  ">JS Framework APIs (\u82f1)</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/references/specs/virtual-dom-apis.html" class="sidebar-link  ">Virtual DOM APIs</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/cheatsheet.html" class="sidebar-link  ">Weex \u5feb\u67e5\u624b\u518c</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-references">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        ViewModel \u9009\u9879
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.955Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u7ec4\u4ef6\u5b9a\u4e49"><a href="#\u7ec4\u4ef6\u5b9a\u4e49" class="headerlink" title="\u7ec4\u4ef6\u5b9a\u4e49"></a>\u7ec4\u4ef6\u5b9a\u4e49</h1><p>\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 <code>&lt;script&gt;</code> \u6807\u7b7e\u4e2d\u7684 <code>module.exports</code> \u3002</p>
+<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = &#123;</div><div class="line">  <span class="comment">// a set of options here</span></div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<h2 id="\u6570\u636e\u548c\u65b9\u6cd5"><a href="#\u6570\u636e\u548c\u65b9\u6cd5" class="headerlink" title="\u6570\u636e\u548c\u65b9\u6cd5"></a>\u6570\u636e\u548c\u65b9\u6cd5</h2><figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = &#123;</div><div class="line">  <span class="attr">data</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="keyword">return</span> &#123;<span class="attr">x</span>: <span class="number">1</span>, <span class="attr">y</span>: <span class="number">2</span>&#125;</div><div class="line">  &#125;,</div><div class="line">  <span class="attr">methods</span>: &#123;</div><div class="line">    <span class="attr">doThis</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;...&#125;,</div><div class="line">    <span class="attr">doThat</span>: <span class="function"><span class="keywo
 rd">function</span> (<span class="params"></span>) </span>&#123;...&#125;</div><div class="line">  &#125;,</div><div class="line">  ...</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p><code>data</code> \u9009\u9879\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u8fd4\u56de\u8fd9\u4e2a\u89c6\u56fe\u6a21\u578b\u53ef\u76d1\u542c\u7684\u6570\u636e\u5bf9\u8c61\u3002\u800c <code>methods</code> \u662f\u4e00\u4e2a\u6620\u5c04\uff0c\u5176\u4e2d\u5305\u542b\u6240\u6709\u89c6\u56fe\u6a21\u578b\u7684\u65b9\u6cd5\u3002</p>
+<p>\u6bcf\u4e2a <code>data</code> \u6216 <code>method</code> \u5c5e\u6027\u5c06\u88ab\u4ee3\u7406\u5230\u89c6\u56fe\u6a21\u578b\u5b9e\u4f8b\u4e2d\u3002\u6240\u4ee5\uff0c\u4f60\u80fd\u901a\u8fc7 <code>this.x</code> \u8bfb\u5199\u6570\u636e\uff0c\u6216\u8005\u901a\u8fc7 <code>this.doThis()</code> \u8c03\u7528\u65b9\u6cd5\u3002</p>
+<p>\u4e00\u4e2a\u5b8c\u6574\u7684\u4f8b\u5b50\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span> <span class="attr">style</span>=<span class="string">"width: &#123;&#123;w&#125;&#125;; height: &#123;&#123;h&#125;&#125;; background-color: red;"</span> <span class="attr">onclick</span>=<span class="string">"update"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line">  <span class="built_in">module</span>.exports = &#123;</div><div class="line">    <span class="attr">data</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div clas
 s="line">      <span class="keyword">return</span> &#123;<span class="attr">w</span>: <span class="number">750</span>, <span class="attr">h</span>: <span class="number">200</span>&#125;</div><div class="line">    &#125;,</div><div class="line">    <span class="attr">methods</span>: &#123;</div><div class="line">      <span class="attr">update</span>: <span class="function"><span class="keyword">function</span> (<span class="params">e</span>) </span>&#123;</div><div class="line">        <span class="keyword">this</span>.h += <span class="number">200</span></div><div class="line">      &#125;</div><div class="line">    &#125;</div><div class="line">  &#125;</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
+<h2 id="\u4e8b\u4ef6"><a href="#\u4e8b\u4ef6" class="headerlink" title="\u4e8b\u4ef6"></a>\u4e8b\u4ef6</h2><figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = &#123;</div><div class="line">  <span class="attr">data</span>: ...,</div><div class="line">  <span class="attr">methods</span>: &#123;</div><div class="line">    <span class="attr">foo</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">      ...</div><div class="line">      this.$emit(<span class="string">'customtype1'</span>, data)</div><div class="line">    &#125;</div><div class="line">  &#125;,</div><div class="line">  <span class="attr">events</span>: &#123;</div><div class="line">    <span class="attr">customtype1</span>: <span class="function"><span class="keyword">function</span> (<span class="params">e</span>) </span>&#123;</div><div class="line">      <span class="built_in"
 >console</span>.log(e.type, e.detail)</div><div class="line">    &#125;</div><div class="line">  &#125;,</div><div class="line">  ...</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p><code>events</code> \u9009\u9879\u5141\u8bb8\u4f60\u5728\u89c6\u56fe\u6a21\u578b\u88ab\u521b\u5efa\u65f6\u6ce8\u518c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002\u7136\u540e\uff0c\u5b83\u4f1a\u76d1\u542c\u8fd9\u4e9b\u7c7b\u578b\u7684\u4e8b\u4ef6\uff0c\u5e76\u901a\u8fc7\u51fd\u6570\u7c7b\u578b\u7684\u503c\u5904\u7406\u5b83\u4eec\u3002</p>
+<p>Weex \u4f1a\u628a\u4e00\u4e2a\u4e8b\u4ef6\u5bf9\u8c61\u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f20\u9012\u7ed9\u5176\u7ed1\u5b9a\u7684\u4e8b\u4ef6\uff0c\u8fd9\u4e2a\u4e8b\u4ef6\u5bf9\u8c61\u5728 <code>e.detail</code> \u4e2d\u5305\u542b\u4e8b\u4ef6\u6570\u636e\u3002</p>
+<h2 id="\u751f\u547d\u5468\u671f"><a href="#\u751f\u547d\u5468\u671f" class="headerlink" title="\u751f\u547d\u5468\u671f"></a>\u751f\u547d\u5468\u671f</h2><figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = &#123;</div><div class="line">  <span class="attr">data</span>: ...,</div><div class="line">  <span class="attr">methods</span>: ...,</div><div class="line">  <span class="attr">init</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="built_in">console</span>.log(<span class="string">'ViewModel constructor begins'</span>)</div><div class="line">  &#125;,</div><div class="line">  <span class="attr">created</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="built_in">console</span>.log(<span class="string">'Data observation finished'</span>)</div
 ><div class="line">  &#125;,</div><div class="line">  <span class="attr">ready</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="built_in">console</span>.log(<span class="string">'Virtual DOM finished'</span>)</div><div class="line">  &#125;,</div><div class="line">  ...</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p>Weex \u89c6\u56fe\u6a21\u578b\u73b0\u5728\u652f\u6301\u751f\u547d\u5468\u671f\u5185\u7684\u94a9\u5b50\u51fd\u6570\uff0c\u8fd9\u4e9b\u94a9\u5b50\u51fd\u6570\u80fd\u88ab\u5199\u4e3a\u7ec4\u4ef6\u9009\u9879\uff1a</p>
+<ul>
+<li><code>init</code>: \u5728\u89c6\u56fe\u6a21\u578b\u7684\u6784\u9020\u51fd\u6570\u5f00\u59cb\u8c03\u7528\u65f6\u6fc0\u6d3b\uff1b</li>
+<li><code>created</code>: \u5f53\u89c6\u56fe\u6a21\u578b\u76d1\u542c\u9ed8\u8ba4\u6570\u636e\uff0c\u4f46\u8fd8\u672a\u7f16\u8bd1\u6a21\u677f\u65f6\u6fc0\u6d3b\uff1b</li>
+<li><code>ready</code>: \u5f53\u89c6\u56fe\u6a21\u578b\u76d1\u542c\u9ed8\u8ba4\u6570\u636e\u5e76\u4e14\u7f16\u8bd1\u6a21\u677f\u751f\u6210\u865a\u62dfDOM\u540e\u88ab\u6fc0\u6d3b\u3002</li>
+</ul>
+<p><strong>\u6ce8\u610f\uff1a\u5f53 <code>methods</code>\u3001<code>events</code> \u6216\u751f\u547d\u5468\u671f\u65b9\u6cd5\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u522b\u7684\u51fd\u6570\u65f6\uff0c\u52a1\u5fc5\u786e\u8ba4\u51fd\u6570\u6267\u884c\u65f6\u7684\u4e0a\u4e0b\u6587\u7b26\u5408\u60a8\u7684\u9884\u671f\uff0c\u4f8b\u5982\uff1a</strong></p>
+<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = &#123;</div><div class="line">  <span class="attr">data</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="keyword">return</span> &#123;<span class="attr">x</span>: <span class="number">1</span>, <span class="attr">y</span>: <span class="number">2</span>&#125;</div><div class="line">  &#125;,</div><div class="line">  <span class="attr">ready</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="comment">// `undefined`</span></div><div class="line">    <span class="comment">// \u56e0\u4e3a\u4e0a\u4e0b\u6587\u53d1\u751f\u4e86\u53d8\u5316</span></div><div class="line">    <span class="keyword">this</span>.foo(<span class="keyword">this</span>.bar)</div><div class="line">    <span cla
 ss="comment">// `1`</span></div><div class="line">    <span class="comment">// \u6b63\u786e\u7ed1\u5b9a\u4e0a\u4e0b\u6587\u4e4b\u540e\u53ef\u4ee5\u5f97\u5230\u9884\u671f\u7684\u503c</span></div><div class="line">    <span class="keyword">this</span>.foo(<span class="keyword">this</span>.bar.bind(<span class="keyword">this</span>))</div><div class="line">  &#125;,</div><div class="line">  <span class="attr">methods</span>: &#123;</div><div class="line">    <span class="attr">foo</span>: <span class="function"><span class="keyword">function</span> (<span class="params">fn</span>) </span>&#123;</div><div class="line">      <span class="keyword">return</span> fn()</div><div class="line">    &#125;,</div><div class="line">    <span class="attr">bar</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">      <span class="keyword">return</span> <span class="keyword">this</span>.x</div><div class="line">    &#125;</div><div class="line">  &#125;</div><div cla
 ss="line">&#125;</div></pre></td></tr></table></figure>
+
+  </div>
+  
+</article>
+</div>
+  
+  <footer id="footer">
+  <div class="row clearfix">
+    <div class="ali-logo">
+      <img src="//gw.alicdn.com/tps/TB1Ef93PXXXXXaXXpXXXXXXXXXX-252-126.png" alt="Alibaba">
+    </div>
+    <div class="dropdown select-lang">
+      <a href="javascript:;" class="dropdown-toggle">
+        Language
+        <span class="caret"></span>
+      </a>
+      <ul class="dropdown-menu">
+        <li>
+          <a href="/v-0.10/references/component-defs.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/references/component-defs.html">\u4e2d\u6587</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+  <div class="row">
+    <p><span>Released under </span><a href="">Apache License 2.0</a></p>
+  </div>
+  <div class="row clearfix">
+    <div class="cell"><span>Copyright(c) 2016 </span><a href="https://www.alibaba.com">Alibaba</a></div>
+    <div class="cell"><span>GroupMade by </span><a href="">\u963f\u91cc\u4e91UED AX</a></div>
+  </div>
+</footer>
+  <div style="display: none;">
+  <script src="//s95.cnzz.com/z_stat.php?id=1261102667&amp;web_id=1261102667" language="JavaScript"></script>
+</div>
+
+  <script src="/js/reqwest.js"></script>
+  <script src="/js/common.js"></script>
+</body>
+</html>