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:09 UTC

[09/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/guide/index.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/index.html b/content/cn/v-0.10/guide/index.html
new file mode 100644
index 0000000..b55d9eb
--- /dev/null
+++ b/content/cn/v-0.10/guide/index.html
@@ -0,0 +1,538 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u4e0a\u624b\u6559\u7a0b | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u8d77\u6b65\u6559\u7a0bWeex \u662f\u4e00\u5957\u7b80\u5355\u6613\u7528\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u65b9\u6848\uff0c\u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u4e3a\u4e86\u505a\u5230\u8fd9\u4e9b\uff0cWeex \u4e0e  Vue \u5408\u4f5c\uff0c\u4f7f\u7528 Vue \u4f5c\u4e3a\u4e0a\u5c42\u6846\u67b6\uff0c\u5e76\u9075\u5faa W3C \u6807\u51c6\u5b9e\u73b0\u4e86\u7edf\u4e00\u7684 JSEngine \u548c DOM API\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6846\u67b6\u9a71\u52a8 Weex\uff0c\u6253\u9020\u4e09\u7aef\u4e00\u81f4\u7684 native \u5e94\u7528\u3002
+\u5c1d\u8bd5 Weex \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 Playgroun">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u4e0a\u624b\u6559\u7a0b">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/index.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u8d77\u6b65\u6559\u7a0bWeex \u662f\u4e00\u5957\u7b80\u5355\u6613\u7528\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u65b9\u6848\uff0c\u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u4e3a\u4e86\u505a\u5230\u8fd9\u4e9b\uff0cWeex \u4e0e  Vue \u5408\u4f5c\uff0c\u4f7f\u7528 Vue \u4f5c\u4e3a\u4e0a\u5c42\u6846\u67b6\uff0c\u5e76\u9075\u5faa W3C \u6807\u51c6\u5b9e\u73b0\u4e86\u7edf\u4e00\u7684 JSEngine \u548c DOM API\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6846\u67b6\u9a71\u52a8 Weex\uff0c\u6253\u9020\u4e09\u7aef\u4e00\u81f4\u7684 native \u5e94\u7528\u3002
+\u5c1d\u8bd5 Weex \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 Playgroun">
+<meta property="og:image" content="https://img.alicdn.com/tps/TB1Ymw3OpXXXXcvXpXXXXXXXXXX-500-1013.jpg">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.940Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u4e0a\u624b\u6559\u7a0b">
+<meta name="twitter:description" content="\u8d77\u6b65\u6559\u7a0bWeex \u662f\u4e00\u5957\u7b80\u5355\u6613\u7528\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u65b9\u6848\uff0c\u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u4e3a\u4e86\u505a\u5230\u8fd9\u4e9b\uff0cWeex \u4e0e  Vue \u5408\u4f5c\uff0c\u4f7f\u7528 Vue \u4f5c\u4e3a\u4e0a\u5c42\u6846\u67b6\uff0c\u5e76\u9075\u5faa W3C \u6807\u51c6\u5b9e\u73b0\u4e86\u7edf\u4e00\u7684 JSEngine \u548c DOM API\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6846\u67b6\u9a71\u52a8 Weex\uff0c\u6253\u9020\u4e09\u7aef\u4e00\u81f4\u7684 native \u5e94\u7528\u3002
+\u5c1d\u8bd5 Weex \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 Playgroun">
+<meta name="twitter:image" content="https://img.alicdn.com/tps/TB1Ymw3OpXXXXcvXpXXXXXXXXXX-500-1013.jpg">
+  
+    <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="guide" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "guide";
+    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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link current ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link  ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link  ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link current ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link  ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link  ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-guide">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u4e0a\u624b\u6559\u7a0b
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.940Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u8d77\u6b65\u6559\u7a0b"><a href="#\u8d77\u6b65\u6559\u7a0b" class="headerlink" title="\u8d77\u6b65\u6559\u7a0b"></a>\u8d77\u6b65\u6559\u7a0b</h1><p>Weex \u662f\u4e00\u5957\u7b80\u5355\u6613\u7528\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u65b9\u6848\uff0c\u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u4e3a\u4e86\u505a\u5230\u8fd9\u4e9b\uff0cWeex \u4e0e  Vue \u5408\u4f5c\uff0c\u4f7f\u7528 Vue \u4f5c\u4e3a\u4e0a\u5c42\u6846\u67b6\uff0c\u5e76\u9075\u5faa W3C \u6807\u51c6\u5b9e\u73b0\u4e86\u7edf\u4e00\u7684 JSEngine \u548c DOM API\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6846\u67b6\u9a71\u52a8 Weex\uff0c\u6253\u9020\u4e09\u7aef\u4e00\u81f4\u7684 native \u5e94\u7528\u3002</p>
+<p>\u5c1d\u8bd5 Weex \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 <a href="https://alibaba.github.io/weex/download.html" target="_blank" rel="external">Playground App</a> \u548c\u5728 <a href="http://dotwe.org" target="_blank" rel="external">dotWe</a> \u7f16\u5199\u4e00\u4e2a <a href="http://dotwe.org/656345423a7ef46f4b897ff471fd2ab5" target="_blank" rel="external">Hello World</a> \u4f8b\u5b50\u3002\u4f60\u4e0d\u9700\u8981\u8003\u8651\u5b89\u88c5\u5f00\u53d1\u73af\u5883\u6216\u7f16\u5199 native \u4ee3\u7801\uff0c\u53ea\u9700\u8981\u505a\u4e0b\u9762\u4e24\u4ef6\u4e8b\uff1a</p>
+<ul>
+<li>\u4e3a\u4f60\u7684\u624b\u673a\u5b89\u88c5 <a href="https://alibaba.github.io/weex/download.html" target="_blank" rel="external">Playground App</a>\uff0c\u5f53\u7136\uff0cWeex \u662f\u8de8\u5e73\u53f0\u7684\u6846\u67b6\uff0c\u4f60\u4f9d\u7136\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u8fdb\u884c\u9884\u89c8\uff0c\u53ea\u662f\u8fd9\u6837\u4f60\u5c31\u65e0\u6cd5\u611f\u53d7\u5230 native \u4f18\u79c0\u7684\u4f53\u9a8c\u4e86\u3002</li>
+<li>\u5728\u65b0\u6807\u7b7e\u9875\u4e2d\u6253\u5f00 <a href="http://dotwe.org/656345423a7ef46f4b897ff471fd2ab5" target="_blank" rel="external">Hello World</a> \u4f8b\u5b50\uff0c\u70b9\u51fb\u9884\u89c8\uff0c\u7136\u540e\u7528  Playground \u626b\u7801\u5373\u53ef\u3002</li>
+</ul>
+<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u770b\u5230\u4e86\u719f\u6089\u7684 HTML \u8bed\u4e49\u5316\u6807\u7b7e\u3001CSS \u6837\u5f0f\u548c Javascript \u4ee3\u7801\u3002\u8fd9\u662f\u4e00\u4e2a\u6700\u7b80\u5355\u7684 Weex \u793a\u4f8b\uff0c\u5b83\u5728\u9875\u9762\u4e2d\u6e32\u67d3\u4e86\u4e00\u4e2a \u201cHello World\u201d\u3002</p>
+<p><img src="https://img.alicdn.com/tps/TB1Ymw3OpXXXXcvXpXXXXXXXXXX-500-1013.jpg" alt="mobile_preview"></p>
+<h2 id="\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f"><a href="#\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f" class="headerlink" title="\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f"></a>\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f</h2><p>\u5c31\u5982\u793a\u4f8b\u4ee3\u7801\u6240\u793a\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>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">text</span> <span class="attr">class</span>=<span class="string">"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">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">.text</span> &#123;</div><div class="line">    <span class="attribute">font-size</span>: <span class="number">50</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"></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>: &#123;</div><div class="line">        <span class="attr">text</span>: <span class="string">'Hello World.'</span></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>\u6211\u4eec\u6682\u65f6\u4e0d\u53bb\u5173\u5fc3 Weex \u7684\u6280\u672f\u7ec6\u8282\uff0c\u4ec5\u770b\u5927\u81f4\u7684\u4ee3\u7801\u7ed3\u6784\u3002Weex \u4ee3\u7801\u7531\u4e09\u90e8\u5206\u6784\u6210\uff1a<code>template</code>\u3001<code>style</code>\u3001<code>script</code>\uff0c\u8fd9\u4e09\u4e2a\u6982\u5ff5\u4e4b\u4e8e Weex \u5c31\u5982 HTML\uff0cCSS\uff0cJavaScript \u4e4b\u4e8e Web\u3002</p>
+<p>\u6a21\u677f\u90e8\u5206\u8d4b\u4e88 Weex \u4ee5\u9aa8\u67b6\uff0c\u7531\u6807\u7b7e\u4ee5\u53ca\u6807\u7b7e\u5305\u56f4\u7684\u5185\u5bb9\u6784\u6210\uff0c\u6807\u7b7e\u4e2d\u80fd\u6dfb\u52a0 <code>attribute\uff08\u7279\u6027\uff09</code>\uff0c\u4e0d\u540c\u7684 <code>attribute</code> \u6709\u4e0d\u540c\u7684\u542b\u4e49\uff0c\u4f8b\u5982 class \u7279\u6027\u8ba9\u540c\u6837\u7684\u6837\u5f0f\u53ef\u4ee5\u4f5c\u7528\u4e8e\u591a\u7ec4 Weex \u6807\u7b7e\uff0c onclick \u7279\u6027\u8ba9\u6807\u7b7e\u80fd\u5bf9\u7528\u6237\u70b9\u51fb\u4e8b\u4ef6\u4f5c\u51fa\u56de\u5e94\u3002</p>
+<p>\u6837\u5f0f\u90e8\u5206\u63cf\u8ff0 Weex \u6807\u7b7e\u5982\u4f55\u663e\u793a\u3002\u548c\u4f60\u4e00\u6837\uff0c\u6211\u4eec\u559c\u6b22 CSS\uff0c\u6240\u4ee5 Weex \u4e2d\u7684\u6837\u5f0f\u5c3d\u91cf\u548c CSS \u6807\u51c6\u4e00\u81f4\u3002Weex \u652f\u6301\u5f88\u591a CSS \u4e2d\u7684\u7279\u6027\uff1a margin, padding, fixed\u2026\u2026 \u66f4\u597d\u7684\u662f\uff0c flexbox \u5e03\u5c40\u6a21\u578b\u5728 Weex \u4e2d\u83b7\u5f97\u4e86\u5f88\u597d\u7684\u652f\u6301\u3002</p>
+<p>\u811a\u672c\u90e8\u5206\u4e3a Weex \u6807\u7b7e\u6dfb\u52a0\u6570\u636e\u4e0e\u903b\u8f91\uff0c\u5728\u8fd9\u91cc\u4f60\u80fd\u65b9\u4fbf\u7684\u8bbf\u95ee\u672c\u5730\u6216\u8fdc\u7a0b\u7684\u6570\u636e\u5e76\u52a8\u6001\u66f4\u65b0\u3002\u4f60\u8fd8\u80fd\u5b9a\u4e49\u65b9\u6cd5\u5e76\u8ba9\u8fd9\u4e9b\u65b9\u6cd5\u54cd\u5e94\u4e0d\u540c\u7684\u4e8b\u4ef6\u3002Weex \u811a\u672c\u7684\u7ec4\u7ec7\u65b9\u5f0f\u57fa\u672c\u9075\u5faa\u4e8e CommonJS module \u89c4\u8303\u3002</p>
+<p>\u662f\u4e0d\u662f\u89c9\u5f97\u8fd9\u4e9b\u8bed\u6cd5\u6709\u4e9b\u773c\u719f\uff1f\u6ca1\u9519\uff0cWeex \u8bed\u6cd5\u53c2\u8003\u4e86 <a href="https://github.com/vuejs/vue" target="_blank" rel="external">Vue</a>\uff0c\u5982\u679c\u4f60\u719f\u6089 Vue\uff0c\u4f60\u4f1a\u5f88\u5feb\u9002\u5e94 Weex \u8bed\u6cd5\uff08\u6700\u65b0\u7684 Weex framework \u5c06\u4f1a\u57fa\u4e8e <a href="https://github.com/vuejs/vue" target="_blank" rel="external">Vue 2.0</a> \u5f00\u53d1\uff0c\u5b8c\u5168\u517c\u5bb9 Vue\uff0c\u53ef\u53c2\u89c1\u6211\u4eec\u7684 <a href="https://github.com/weexteam/weex-vue-framework/issues/9" target="_blank" rel="external">Roadmap</a>\uff09\uff0c\u66f4\u597d\u7684\u662f\uff0c\u6211\u4eec\u62e5\u62b1\u89c4\u8303\uff0c\u5c3d\u53ef\u80fd\u7684\u6309\u7167 W3C \u6807\u51c6\u8fdb\u884c\u5b9e\u73b0\uff0c\u56e0\u6b64\uff0c\u4f60\u5927\u53ef\u4e0d\u5fc5\u62c5\u5fc3 Weex \u4e09\u7aef\u5dee\u5f02\u3002</p>
+<p>\u4f60\u53ef\u4ee5\u8bd5\u7740\u4fee\u6539 <a href="http://dotwe.org/656345423a7ef46f4b897ff471fd2ab5" target="_blank" rel="external">Hello World</a> \u7684\u4ee3\u7801\uff0c\u518d\u6b21\u70b9\u51fb\u9884\u89c8\u5373\u53ef\u751f\u6210\u65b0\u7684\u4e8c\u7ef4\u7801\u8fdb\u884c\u626b\u63cf\u3002</p>
+<p>Weex \u4e0d\u6b62\u662f\u4e2a Demo\uff0c\u5728\u63a5\u4e0b\u6765\u7684\u7ae0\u8282\u4e2d\uff0c\u4f60\u8fd8\u4f1a\u770b\u5230\u66f4\u591a Weex \u5f00\u53d1 native \u5e94\u7528\u5e76\u5c06\u5176\u96c6\u6210\u5230\u4f60\u7684 App \u4e2d\u7684\u7cbe\u5f69\u6559\u7a0b\u3002\u4e0d\u8981\u5fd8\u4e86\u968f\u65f6\u5728 <a href="http://dotwe.org" target="_blank" rel="external">dotWe</a> \u4e2d\u7f16\u5199\u4ee3\u7801\u9a8c\u8bc1\u5e76\u901a\u8fc7 <a href="https://alibaba.github.io/weex/download.html" target="_blank" rel="external">Playground App</a> \u9884\u89c8\u3002</p>
+
+  </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/guide/index.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/index.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/guide/syntax/comm.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/comm.html b/content/cn/v-0.10/guide/syntax/comm.html
new file mode 100644
index 0000000..7477425
--- /dev/null
+++ b/content/cn/v-0.10/guide/syntax/comm.html
@@ -0,0 +1,533 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u7ec4\u4ef6\u901a\u4fe1 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u7ec4\u4ef6\u95f4\u901a\u4fe1\u81ea\u5b9a\u4e49\u4e8b\u4ef6Weex \u652f\u6301\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u76f8\u5173\u7684\u8bbe\u8ba1\uff1a1\uff0c\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff1b2\uff0c\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002
+\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u6bcf\u4e2a Weex \u7684 ViewModel \u90fd\u652f\u6301 this.$on(type, handler) \u548c this.$off(type[, handler]) \u7684 API\u3002type \u662f\u76d1\u542c\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7c7b\u578b\uff0chandler \u662f\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u5f53 handler \u88ab\u89e6\u53d1\u65f6\uff0c\u4f1a\u6709\u4e00\u4e2a\u4e8b\u4ef6">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u7ec4\u4ef6\u901a\u4fe1">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/syntax/comm.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u7ec4\u4ef6\u95f4\u901a\u4fe1\u81ea\u5b9a\u4e49\u4e8b\u4ef6Weex \u652f\u6301\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u76f8\u5173\u7684\u8bbe\u8ba1\uff1a1\uff0c\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff1b2\uff0c\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002
+\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u6bcf\u4e2a Weex \u7684 ViewModel \u90fd\u652f\u6301 this.$on(type, handler) \u548c this.$off(type[, handler]) \u7684 API\u3002type \u662f\u76d1\u542c\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7c7b\u578b\uff0chandler \u662f\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u5f53 handler \u88ab\u89e6\u53d1\u65f6\uff0c\u4f1a\u6709\u4e00\u4e2a\u4e8b\u4ef6">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.941Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u7ec4\u4ef6\u901a\u4fe1">
+<meta name="twitter:description" content="\u7ec4\u4ef6\u95f4\u901a\u4fe1\u81ea\u5b9a\u4e49\u4e8b\u4ef6Weex \u652f\u6301\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u76f8\u5173\u7684\u8bbe\u8ba1\uff1a1\uff0c\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff1b2\uff0c\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002
+\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u6bcf\u4e2a Weex \u7684 ViewModel \u90fd\u652f\u6301 this.$on(type, handler) \u548c this.$off(type[, handler]) \u7684 API\u3002type \u662f\u76d1\u542c\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7c7b\u578b\uff0chandler \u662f\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u5f53 handler \u88ab\u89e6\u53d1\u65f6\uff0c\u4f1a\u6709\u4e00\u4e2a\u4e8b\u4ef6">
+  
+    <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="guide" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "guide";
+    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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link  ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link  ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link current ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link  ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link  ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link current ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-guide">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u7ec4\u4ef6\u901a\u4fe1
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.941Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u7ec4\u4ef6\u95f4\u901a\u4fe1"><a href="#\u7ec4\u4ef6\u95f4\u901a\u4fe1" class="headerlink" title="\u7ec4\u4ef6\u95f4\u901a\u4fe1"></a>\u7ec4\u4ef6\u95f4\u901a\u4fe1</h1><h2 id="\u81ea\u5b9a\u4e49\u4e8b\u4ef6"><a href="#\u81ea\u5b9a\u4e49\u4e8b\u4ef6" class="headerlink" title="\u81ea\u5b9a\u4e49\u4e8b\u4ef6"></a>\u81ea\u5b9a\u4e49\u4e8b\u4ef6</h2><p>Weex \u652f\u6301\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u76f8\u5173\u7684\u8bbe\u8ba1\uff1a1\uff0c\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff1b2\uff0c\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002</p>
+<h2 id="\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6"><a href="#\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6" class="headerlink" title="\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6"></a>\u76d1\u542c\u81ea\u5b9a\u4e49\u4e8b\u4ef6</h2><p>\u6bcf\u4e2a Weex \u7684 ViewModel \u90fd\u652f\u6301 <code>this.$on(type, handler)</code> \u548c <code>this.$off(type[, handler])</code> \u7684 API\u3002<code>type</code> \u662f\u76d1\u542c\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7c7b\u578b\uff0c<code>handler</code> \u662f\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002</p>
+<p>\u5f53 <code>handler</code> \u88ab\u89e6\u53d1\u65f6\uff0c\u4f1a\u6709\u4e00\u4e2a\u4e8b\u4ef6\u5bf9\u8c61 <code>event</code> \u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u53c2\u6570\u88ab\u4f20\u5165\uff0c\u4e8b\u4ef6\u5bf9\u8c61\u7684\u6570\u636e\u683c\u5f0f\u57fa\u4e8e<a href="./events.html">\u4e8b\u4ef6\u673a\u5236</a>\u4e2d\u63d0\u5230\u7684\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61\u3002</p>
+<h2 id="\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6"><a href="#\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6" class="headerlink" title="\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6"></a>\u521b\u5efa\u81ea\u5b9a\u4e49\u4e8b\u4ef6</h2><p>\u6bcf\u4e2a Weex \u7684 ViewModel \u90fd\u652f\u6301 <code>this.$emit(type, detail)</code> \u7684 API\uff0c\u53ef\u4ee5\u5728\u5f53\u524d ViewModel \u4e2d\u4ea7\u751f\u4e00\u4e2a\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u3002<code>type</code> \u662f\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7684\u7c7b\u578b\uff0c<code>detail</code> \u5219\u662f\u4e00\u4e2a\u5bf9\u8be5\u4e8b\u4ef6\u7ec6\u8282\u8865\u5145\u63cf\u8ff0\u7684 JSON \u5bf9\u8c61\uff0c\u4f1a\u4ee5 <code>event.detail</code> \u7684\u5f62\u5f0f\u51fa\u73b0\u5728\u5904\u7406\u6b64\u4e8b\u4ef6\u7684\u51fd\u6570\u4e2d\u3002</p>
+<h2 id="\u4ece\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u901a\u4fe1"><a href="#\u4ece\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u901a\u4fe1" class="headerlink" title="\u4ece\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u901a\u4fe1"></a>\u4ece\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u901a\u4fe1</h2><p>\u9996\u5148\u7236\u7ec4\u4ef6\u8981\u76d1\u542c\u7279\u5b9a\u7c7b\u578b\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u800c\u5b50\u7ec4\u4ef6\u53ef\u4ee5\u4f7f\u7528 <code>this._parent</code> \u627e\u5230\u7236\u7ec4\u4ef6\uff0c\u7136\u540e\u518d\u8c03\u7528 <code>this._parent.$emit(type, detail)</code> \u65b9\u6cd5\uff0c\u5373\u53ef\u5b9e\u73b0\u81ea\u4e0b\u800c\u4e0a\u7684\u901a\u4fe1\u3002\u4f8b\u5982\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">element</span> <span class="attr">name</span>=<span class="string">"foo"</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">div</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">image</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;imageUrl&#125;&#125;"</span> <span class="attr">class</span>=<span class="string">"thumb"</span> <span class="attr">onclick</span>=<span class="string">"test"</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">text</span>&gt;</span>&#123;&#123;title&#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">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">.thumb</span> &#123; <span class="attribute">width</span>: <span class="number">200</span>; <span class="attribute">height</span>: <span class="number">200</span>; &#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>: &#123;</div><div class="line">        <span class="attr">title</span>: <span class="string">''</span>,</div><div class="line">        <span
  class="attr">imageUrl</span>: <span class="string">''</span></div><div class="line">      &#125;,</div><div class="line">      <span class="attr">methods</span>: &#123;</div><div class="line">        <span class="attr">test</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">          <span class="comment">// Emit notify to parent</span></div><div class="line">          <span class="keyword">this</span>._parent.$emit(<span class="string">'notify'</span>, &#123;<span class="attr">a</span>: <span class="number">1</span>&#125;)</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><div class="line"><span class="tag">&lt;/<span class="name">element</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">t
 emplate</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">foo</span> <span class="attr">title</span>=<span class="string">"Hello"</span> <span class="attr">image-url</span>=<span class="string">"https://gtms02.alicdn.com/tps/i2/TB1QHKjMXXXXXadXVXX20ySQVXX-512-512.png"</span>&gt;</span><span class="tag">&lt;/<span class="name">foo</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">text</span> <span class="attr">if</span>=<span class="string">"eventType"</span>&gt;</span>event: &#123;&#123;eventType&#125;&#125; - &#123;&#123;eventDetail&#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">template</span>&gt;</span></div><div class="line"></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>: &#123;</div><div class="line">      <span class="attr">eventType</span>: <span class="string">''</span>,</div><div class="line">      <span class="attr">eventDetail</span>: &#123;&#125;</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="keyword">this</span>.$on(<span class="string">'notify'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">event</span>) </span>&#123;</div><div class="line">        <span class="comment">// When a notify comes, this handler will be run.</span></div><div class="line">        <span cla
 ss="comment">// `event.detail` will be `&#123;a: 1&#125;`</span></div><div class="line">        <span class="keyword">this</span>.eventType = event.type</div><div class="line">        <span class="keyword">this</span>.eventDetail = <span class="built_in">JSON</span>.stringify(event.detail)</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/51e553ef43e5c744d05da1bb811903bf" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u4ece\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u901a\u4fe1"><a href="#\u4ece\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u901a\u4fe1" class="headerlink" title="\u4ece\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u901a\u4fe1"></a>\u4ece\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u901a\u4fe1</h2><p>\u540c\u7406\uff0c\u9996\u5148\u5b50\u7ec4\u4ef6\u8981\u76d1\u542c\u7279\u5b9a\u7c7b\u578b\u7684\u81ea\u5b9a\u4e49\u4e8b\u4ef6\uff0c\u800c\u7236\u7ec4\u4ef6\u53ef\u4ee5\u4f7f\u7528 <code>this.$vm(id)</code> \u627e\u5230\u7236\u7ec4\u4ef6\uff0c\u7136\u540e\u518d\u8c03\u7528 <code>this.$vm(id).$emit(type, detail)</code> \u65b9\u6cd5\uff0c\u5373\u53ef\u5b9e\u73b0\u81ea\u4e0a\u800c\u4e0b\u7684\u901a\u4fe1\u3002\u4f8b\u5982\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">element</span> <span class="attr">name</span>=<span class="string">"foo"</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">div</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">image</span> <span class="attr">if</span>=<span class="string">"imageUrl"</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;imageUrl&#125;&#125;"</span> <span class="attr">class</span>=<span class="string">"thumb"</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">text</span>&gt;</span>Foo<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line">    <span class="tag">&lt;/<s
 pan 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">.thumb</span> &#123; <span class="attribute">width</span>: <span class="number">200</span>; <span class="attribute">height</span>: <span class="number">200</span>; &#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>: &#123;</div><div class="line">        <span class="attr">imageUrl</span>: <span class="string">''</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="keyword">this</span>.$on(<span class="string">'changeImage'</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>.imageUrl = e.detail</div><div class="line">        &#125;.bind(<span class="keyword">this</span>))</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><div class="line"><span class="tag">&lt;/<span class="name">element</span>&gt;</span></div><div class="line"></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">div</span>&gt;</span></div><div c
 lass="line">    <span class="tag">&lt;<span class="name">foo</span> <span class="attr">id</span>=<span class="string">"sub"</span>&gt;</span><span class="tag">&lt;/<span class="name">foo</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">text</span> <span class="attr">onclick</span>=<span class="string">"test"</span>&gt;</span>click to update foo<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">template</span>&gt;</span></div><div class="line"></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">methods</span>: &#123;</div><div class="line">      <span class="attr">test</span>: <span class="f
 unction"><span class="keyword">function</span> (<span class="params">e</span>) </span>&#123;</div><div class="line">        <span class="keyword">this</span>.$vm(<span class="string">'sub'</span>).$emit(</div><div class="line">          <span class="string">'changeImage'</span>,</div><div class="line">          <span class="string">'https://gtms02.alicdn.com/tps/i2/TB1QHKjMXXXXXadXVXX20ySQVXX-512-512.png'</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/ea616d180620648e66554d42f57db82b" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u4e0b\u4e00\u8282\uff1a<a href="./config-n-data.html">\u9875\u9762\u6574\u4f53\u914d\u7f6e</a> </p>
+
+  </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/guide/syntax/comm.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/syntax/comm.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/guide/syntax/composed-component.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/composed-component.html b/content/cn/v-0.10/guide/syntax/composed-component.html
new file mode 100644
index 0000000..04f8f70
--- /dev/null
+++ b/content/cn/v-0.10/guide/syntax/composed-component.html
@@ -0,0 +1,548 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u7ec4\u4ef6\u5c01\u88c5 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u7ec4\u4ef6\u5c01\u88c5\u7ecf\u5e38\u6211\u4eec\u4f1a\u53d1\u73b0 Weex \u7684 &amp;lt;template&amp;gt; \u4e2d\u6709\u5f88\u591a\u53ef\u590d\u7528\u7684\u90e8\u5206\uff0c\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u6210\u4e0a\u5c42\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e76\u91cd\u7528\u3002\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a foo.we \u7684\u6587\u4ef6\uff0c&amp;lt;foo&amp;gt; \u5c31\u662f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u7ec4\u4ef6\u540d\u79f0\uff1a
+&amp;lt;!-- foo.we --&amp;gt;&amp;lt;template&amp;gt;  &amp;lt;div style=&quot;flex-direction: row;&quot;&amp;g">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u7ec4\u4ef6\u5c01\u88c5">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/syntax/composed-component.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u7ec4\u4ef6\u5c01\u88c5\u7ecf\u5e38\u6211\u4eec\u4f1a\u53d1\u73b0 Weex \u7684 &amp;lt;template&amp;gt; \u4e2d\u6709\u5f88\u591a\u53ef\u590d\u7528\u7684\u90e8\u5206\uff0c\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u6210\u4e0a\u5c42\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e76\u91cd\u7528\u3002\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a foo.we \u7684\u6587\u4ef6\uff0c&amp;lt;foo&amp;gt; \u5c31\u662f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u7ec4\u4ef6\u540d\u79f0\uff1a
+&amp;lt;!-- foo.we --&amp;gt;&amp;lt;template&amp;gt;  &amp;lt;div style=&quot;flex-direction: row;&quot;&amp;g">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.942Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u7ec4\u4ef6\u5c01\u88c5">
+<meta name="twitter:description" content="\u7ec4\u4ef6\u5c01\u88c5\u7ecf\u5e38\u6211\u4eec\u4f1a\u53d1\u73b0 Weex \u7684 &amp;lt;template&amp;gt; \u4e2d\u6709\u5f88\u591a\u53ef\u590d\u7528\u7684\u90e8\u5206\uff0c\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u6210\u4e0a\u5c42\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e76\u91cd\u7528\u3002\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a foo.we \u7684\u6587\u4ef6\uff0c&amp;lt;foo&amp;gt; \u5c31\u662f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u7ec4\u4ef6\u540d\u79f0\uff1a
+&amp;lt;!-- foo.we --&amp;gt;&amp;lt;template&amp;gt;  &amp;lt;div style=&quot;flex-direction: row;&quot;&amp;g">
+  
+    <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="guide" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "guide";
+    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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link  ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link current ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link  ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </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">
+    
+      \u6559\u7a0b
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/index.html" class="sidebar-link  ">\u4e0a\u624b\u6559\u7a0b</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/develop-on-your-local-machine.html" class="sidebar-link  ">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/syntax/index.html" class="sidebar-link  ">\u8bed\u6cd5\u4ecb\u7ecd</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/data-binding.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/style-n-class.html" class="sidebar-link  ">CSS \u6837\u5f0f\u548c\u7c7b</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/events.html" class="sidebar-link  ">\u4e8b\u4ef6\u5904\u7406</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/display-logic.html" class="sidebar-link  ">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/render-logic.html" class="sidebar-link  ">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/composed-component.html" class="sidebar-link current ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link  ">\u627e\u8282\u70b9</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/comm.html" class="sidebar-link  ">\u7ec4\u4ef6\u901a\u4fe1</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/config-n-data.html" class="sidebar-link  ">\u9875\u9762\u914d\u7f6e\u548c\u9875\u9762\u6570\u636e</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/guide/how-to/index.html" class="sidebar-link  ">\u4f7f\u7528 Devtools \u8c03\u8bd5 Weex \u9875\u9762</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/debug-with-html5.html" class="sidebar-link  ">\u5728\u6d4f\u89c8\u5668\u4e2d\u8c03\u8bd5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/require-3rd-party-libs.html" class="sidebar-link  ">\u5982\u4f55\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/how-to/transform-code-into-js-bundle.html" class="sidebar-link  ">\u5c06 `.we` \u6e90\u4ee3\u7801\u8f6c\u6362\u6210 JS Bundle</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-guide">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u7ec4\u4ef6\u5c01\u88c5
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.942Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u7ec4\u4ef6\u5c01\u88c5"><a href="#\u7ec4\u4ef6\u5c01\u88c5" class="headerlink" title="\u7ec4\u4ef6\u5c01\u88c5"></a>\u7ec4\u4ef6\u5c01\u88c5</h1><p>\u7ecf\u5e38\u6211\u4eec\u4f1a\u53d1\u73b0 Weex \u7684 <code>&lt;template&gt;</code> \u4e2d\u6709\u5f88\u591a\u53ef\u590d\u7528\u7684\u90e8\u5206\uff0c\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u6210\u4e0a\u5c42\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e76\u91cd\u7528\u3002\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <code>foo.we</code> \u7684\u6587\u4ef6\uff0c<code>&lt;foo&gt;</code> \u5c31\u662f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u7ec4\u4ef6\u540d\u79f0\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- foo.we --&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">div</span> <span class="attr">style</span>=<span class="string">"flex-direction: row;"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">image</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;image&#125;&#125;"</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">text</span>&gt;</span>&#123;&#123;title&#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">template</span>&g
 t;</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="keyword">var</span> env = <span class="string">'foo'</span></div><div class="line">  <span class="built_in">module</span>.exports = &#123;</div><div class="line">    <span class="attr">data</span>: &#123;</div><div class="line">      <span class="attr">title</span>: <span class="literal">null</span>,</div><div class="line">      <span class="attr">image</span>: <span class="literal">null</span></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><code>foo.we</code> \u7684\u4e5f\u5305\u542b <code>&lt;template&gt;</code>\uff0c<code>&lt;style&gt;</code> \u548c <code>&lt;script&gt;</code>\uff0c\u5b9a\u4e49\u597d\u4e86\u540e\uff0c\u76f4\u63a5\u7528 <code>&lt;foo&gt;</code> \u6807\u7b7e\u5373\u53ef\u5c06\u5176\u5f15\u5165\u5230\u5176\u5b83\u7ec4\u4ef6\u7684 <code>&lt;template&gt;</code> \u4e2d\uff0c\u5e76\u4e14\u5728 <code>&lt;foo&gt;</code> \u6807\u7b7e\u4e0a\u8bbe\u7f6e\u5176 <code>data</code> \u540c\u540d\u7684\u7279\u6027\u4f1a\u5c06\u8fd9\u4e2a\u503c\u8d4b\u7ed9 <code>&lt;foo&gt;</code> \u7684\u4e0a\u4e0b\u6587\uff1a</p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a\u7531\u4e8e HTML \u8bed\u6cd5\u4e2d\u7279\u6027\u540d\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\uff0c\u6240\u4ee5\u60a8\u65e0\u6cd5\u76f4\u63a5\u7528\u9a7c\u5cf0\u547d\u540d\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86 hyphenated \u8bed\u6cd5\uff0c\u5728\u89e3\u6790\u4e4b\u540e\u8fd9\u4e9b\u540d\u79f0\u4f1a\u81ea\u52a8\u8f6c\u6362\u4e3a\u9a7c\u5cf0\u547d\u540d (\u6bd4\u5982\u5728 <code>&lt;template&gt;</code> \u7684\u7ec4\u4ef6\u7279\u6027\u91cc\u7528 <code>aaa-bbb-ccc</code> \u8868\u793a\u5176 <code>data</code> \u6216\u4e0a\u4e0b\u6587\u91cc\u7684 <code>aaaBbbCcc</code>)\u3002</em></p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- bar.we --&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">foo</span> <span class="attr">title</span>=<span class="string">"..."</span> <span class="attr">image</span>=<span class="string">"..."</span>&gt;</span><span class="tag">&lt;/<span class="name">foo</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="keyword">var</span> env = <span class="string">'bar'</span></div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a\u8fd9\u91cc <code>bar.we</code> \u548c <code>foo.we</code> \u5fc5\u987b\u5728\u540c\u76ee\u5f55\u4e0b\u624d\u80fd\u81ea\u52a8\u5efa\u7acb\u4f9d\u8d56\u5173\u7cfb\u3002</em></p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a<code>foo.we</code> \u6587\u4ef6\u7684 <code>&lt;script&gt;</code> \u5177\u6709\u76f8\u5bf9\u72ec\u7acb\u7684\u4f5c\u7528\u57df\uff0c\u4e0d\u4f1a\u548c <code>bar.we</code> \u4e2d\u7684 <code>&lt;script&gt;</code> \u4ea7\u751f\u5e72\u6270\u3002\u540c\u65f6 <code>&lt;foo&gt;</code> \u5bf9\u8c61\u5177\u6709\u76f8\u5bf9\u72ec\u7acb\u7684\u5b50\u7ec4\u4ef6\u4e0a\u4e0b\u6587\uff0c\u5373 <code>this</code>\uff0c\u4e5f\u5305\u62ec\u5176\u5b9a\u4e49\u7684\u5b8c\u5168\u4e0d\u540c\u7684\u6570\u636e\u548c\u65b9\u6cd5\u3002</em></p>
+<h2 id="\u7ec4\u4ef6\u5d4c\u5957"><a href="#\u7ec4\u4ef6\u5d4c\u5957" class="headerlink" title="\u7ec4\u4ef6\u5d4c\u5957"></a>\u7ec4\u4ef6\u5d4c\u5957</h2><p>\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e5f\u652f\u6301\u5d4c\u5957\uff0c\u5982\u4e0b\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- somepath/foo.we --&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">div</span> <span class="attr">style</span>=<span class="string">"flex-direction: row;"</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">image</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;image&#125;&#125;"</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">text</span>&gt;</span>&#123;&#123;title&#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">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>: &#123;</div><div class="line">      <span class="comment">// These keys must be declared explicitly here</span></div><div class="line">      <span class="comment">// or data-binding will not work from its parent.</span></div><div class="line">      title: <span class="literal">null</span>,</div><div class="line">      <span class="attr">image</span>: <span class="literal">null</span></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>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- samepath/foo.list.we --&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">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;description&#125;&#125;<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">foo</span> <span class="attr">repeat</span>=<span class="string">"item in list"</span> <span class="attr">title</span>=<span class="string">"&#123;&#123;item.text&#125;&#125;"</span> <span class="attr">image</span>=<span class="string">"&#123;&#123;item.img&#125;&#125;"</span>&gt;</span><span class="tag">&lt;/<span class="name">foo</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">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>: &#123;</div><div class="line">      <span class="attr">description</span>: <span class="string">''</span>,</div><div class="line">      <span class="comment">// This key must be declared explicitly here</span></div><div class="line">      <span class="comment">// or data-binding will not work from its parent.</span></div><div class="line">      list: []</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>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- samepath/main.we --&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">foo-list</span> <span class="attr">list</span>=<span class="string">"&#123;&#123;list&#125;&#125;"</span>&gt;</span><span class="tag">&lt;/<span class="name">foo-list</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>: &#123;</div><div class="line">      <span class="attr">list</span>: [</div><div class="line">        &#123;<span class="attr">text</span>: <span class="string">'
 ...'</span>, <span class="attr">img</span>: <span class="string">'...'</span>&#125;,</div><div class="line">        &#123;<span class="attr">text</span>: <span class="string">'...'</span>, <span class="attr">img</span>: <span class="string">'...'</span>&#125;,</div><div class="line">        &#123;<span class="attr">text</span>: <span class="string">'...'</span>, <span class="attr">img</span>: <span class="string">'...'</span>&#125;,</div><div class="line">        ...</div><div class="line">      ]</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>\u8fd9\u91cc\u7684 <code>main.we</code> \u5d4c\u5957\u4e86 <code>&lt;foo-list&gt;</code>\uff0c<code>&lt;foo-list&gt;</code> \u5d4c\u5957\u4e86 <code>&lt;foo&gt;</code>\uff0c\u540c\u65f6\u7ec4\u4ef6\u53ef\u4ee5\u6b63\u5e38\u7684\u914d\u5408\u6570\u636e\u7ed1\u5b9a\u3001<code>repeat</code> \u7279\u6027\u7b49\u4f7f\u7528\u3002</p>
+<h2 id="\u66f4\u591a\u5b50\u7ec4\u4ef6\u7684\u5b9a\u4e49\u548c\u4e66\u5199\u65b9\u5f0f"><a href="#\u66f4\u591a\u5b50\u7ec4\u4ef6\u7684\u5b9a\u4e49\u548c\u4e66\u5199\u65b9\u5f0f" class="headerlink" title="\u66f4\u591a\u5b50\u7ec4\u4ef6\u7684\u5b9a\u4e49\u548c\u4e66\u5199\u65b9\u5f0f"></a>\u66f4\u591a\u5b50\u7ec4\u4ef6\u7684\u5b9a\u4e49\u548c\u4e66\u5199\u65b9\u5f0f</h2><p>\u9664\u4e86\u5728\u4e3b\u6587\u4ef6\u540c\u76ee\u5f55\u4e0b\u521b\u5efa\u548c\u88ab\u5c01\u88c5\u7ec4\u4ef6\u540c\u540d\u7684 <code>we</code> \u6587\u4ef6\u4e4b\u5916\uff0cWeex \u8fd8\u652f\u6301\u53e6\u5916\u51e0\u79cd\u5b50\u7ec4\u4ef6\u7684\u4e66\u5199\u65b9\u5f0f\uff1a</p>
+<ul>
+<li>\u5728 <code>&lt;script&gt;</code> \u4e2d\u901a\u8fc7 <code>require</code> \u5176\u5b83\u76ee\u5f55\u7684 <code>we</code> \u6587\u4ef6\u5b9a\u4e49\u540c\u540d\u7ec4\u4ef6</li>
+<li>\u5728\u4e3b\u6587\u4ef6\u4e0b\u65b0\u589e <code>&lt;element name=&quot;xxx&quot;&gt;</code> \u6807\u7b7e\uff0c<code>name</code> \u7279\u6027\u7684\u503c\u4e3a\u65b0\u521b\u5efa\u7684\u7ec4\u4ef6\u540d\uff0c\u5176 <code>&lt;element&gt;</code> \u5185\u90e8\u7684\u5185\u5bb9\u662f\u5b9a\u4e49\u8be5\u7ec4\u4ef6\u7684\u4ee3\u7801</li>
+</ul>
+<p>\u6bd4\u5982\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- path-a/main.we --&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">element</span> <span class="attr">name</span>=<span class="string">"foo"</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">text</span>&gt;</span>Foo<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">element</span>&gt;</span></div><div class="line"></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">div</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">foo</span>&gt;</span><span class="tag">&lt;/<span class="name">foo</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">bar</span>&gt;</span><span cla
 ss="tag">&lt;/<span class="name">bar</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">script</span>&gt;</span><span class="javascript"></span></div><div class="line">  <span class="built_in">require</span>(<span class="string">'path-b/bar.we'</span>)</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="comment">&lt;!-- path-b/bar.we --&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">text</span>&gt;</span>Bar<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div></pre></td></tr></table></figure>
+<p>\u8fd9\u6837\u7684\u8bdd\uff0c<code>path-a/main.we</code> \u6700\u7ec8\u5c55\u793a\u7684\u7ed3\u679c\u662f\u201cFoo\u201d\u548c\u201cBar\u201d\u4e24\u6bb5\u6587\u672c\u3002</p>
+<h2 id="\u6ce8\u610f\u4e8b\u9879"><a href="#\u6ce8\u610f\u4e8b\u9879" class="headerlink" title="\u6ce8\u610f\u4e8b\u9879"></a>\u6ce8\u610f\u4e8b\u9879</h2><ul>
+<li>\u7ec4\u4ef6\u5404\u81ea\u7684 <code>&lt;style&gt;</code> \u662f\u76f8\u4e92\u72ec\u7acb\u7684\uff0c\u4e0d\u4f1a\u62c5\u5fc3\u4e0d\u540c\u7ec4\u4ef6\u4e2d\u76f8\u540c\u7684 class name \u76f8\u4e92\u5e72\u6270\u3002</li>
+<li>\u5982\u679c\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5728\u7236\u7ec4\u4ef6\u4e2d\u6709 <code>id</code> \u7279\u6027\uff0c\u5219\u53ef\u4ee5\u5728\u7236\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e2d\u901a\u8fc7 <code>this.$vm(id)</code> \u63a5\u53e3\u6765\u8bbf\u95ee\u8be5\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7 <code>this.$el(id)</code> \u6765\u627e\u5230\u5176\u80cc\u540e\u771f\u5b9e\u7684\u539f\u751f\u7ec4\u4ef6\u3002\u66f4\u591a\u8be6\u89c1<a href="./id.html">\u83b7\u53d6\u5b50\u7ec4\u4ef6\u4fe1\u606f</a></li>
+<li>\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e4b\u95f4\u901a\u4fe1\u7684\u95ee\u9898\u53ef\u4ee5\u53c2\u8003<a href="./comm.html">\u7ec4\u4ef6\u95f4\u901a\u4fe1</a></li>
+<li>\u4e0d\u8bba\u901a\u8fc7\u7236\u7ec4\u4ef6\u628a\u6570\u636e\u4f20\u9012\u8fdb\u6765\u8fd8\u662f\u5728\u5f53\u524d\u7ec4\u4ef6\u5185\u90e8\u5bf9\u6570\u636e\u53d1\u8d77\u4fee\u6539\uff0c\u53ea\u6709\u5728\u7ec4\u4ef6\u7684 <code>data</code> \u9009\u9879\u4e2d\u660e\u786e\u5199\u660e\u7684\u5b57\u6bb5\u624d\u4f1a\u88ab\u6b63\u5e38\u7684\u76d1\u542c\u3002</li>
+<li>\u4efb\u4f55\u7ec4\u4ef6\u76ee\u524d\u5747\u4e0d\u652f\u6301\u81ea\u95ed\u5408\u6807\u7b7e\u7684\u5199\u6cd5\uff0c\u8bf7\u52ff\u4f7f\u7528\u3002</li>
+</ul>
+<p>\u4e0b\u4e00\u8282\uff1a<a href="./id.html">\u83b7\u53d6\u5b50\u7ec4\u4ef6\u4fe1\u606f</a></p>
+
+  </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/guide/syntax/composed-component.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/syntax/composed-component.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>