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

[07/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/syntax/display-logic.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/display-logic.html b/content/cn/v-0.10/guide/syntax/display-logic.html
new file mode 100644
index 0000000..5c2a710
--- /dev/null
+++ b/content/cn/v-0.10/guide/syntax/display-logic.html
@@ -0,0 +1,574 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u5c55\u793a\u903b\u8f91\u63a7\u5236 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u5c55\u793a\u903b\u8f91\u63a7\u5236Weex \u652f\u6301\u901a\u8fc7\u4e24\u79cd\u7279\u6b8a\u7684\u7279\u6027 if \u548c repeat \u786e\u5b9a\u7ec4\u4ef6\u7684\u663e\u793a\u903b\u8f91\uff0c\u8fd9\u4f1a\u4f7f\u5f97\u6574\u4e2a\u754c\u9762\u7684\u5c55\u793a\u903b\u8f91\u63a7\u5236\u66f4\u52a0\u7b80\u5355\u7075\u6d3b\u3002
+if\u901a\u8fc7\u8bbe\u7f6e if \u7279\u6027\u503c\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u5f53\u524d\u7ec4\u4ef6\u662f\u5426\u663e\u793a\u3002\u5982\u679c\u503c\u4e3a\u771f\uff0c\u5219\u5f53\u524d\u7ec4\u4ef6\u4f1a\u88ab\u6e32\u67d3\u51fa\u6765\uff0c\u5982\u679c\u503c\u4e3a\u5047\u5219\u4f1a\u88ab\u79fb\u9664\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt;Toggle Im">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u5c55\u793a\u903b\u8f91\u63a7\u5236">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/syntax/display-logic.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u5c55\u793a\u903b\u8f91\u63a7\u5236Weex \u652f\u6301\u901a\u8fc7\u4e24\u79cd\u7279\u6b8a\u7684\u7279\u6027 if \u548c repeat \u786e\u5b9a\u7ec4\u4ef6\u7684\u663e\u793a\u903b\u8f91\uff0c\u8fd9\u4f1a\u4f7f\u5f97\u6574\u4e2a\u754c\u9762\u7684\u5c55\u793a\u903b\u8f91\u63a7\u5236\u66f4\u52a0\u7b80\u5355\u7075\u6d3b\u3002
+if\u901a\u8fc7\u8bbe\u7f6e if \u7279\u6027\u503c\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u5f53\u524d\u7ec4\u4ef6\u662f\u5426\u663e\u793a\u3002\u5982\u679c\u503c\u4e3a\u771f\uff0c\u5219\u5f53\u524d\u7ec4\u4ef6\u4f1a\u88ab\u6e32\u67d3\u51fa\u6765\uff0c\u5982\u679c\u503c\u4e3a\u5047\u5219\u4f1a\u88ab\u79fb\u9664\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt;Toggle Im">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.945Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u5c55\u793a\u903b\u8f91\u63a7\u5236">
+<meta name="twitter:description" content="\u5c55\u793a\u903b\u8f91\u63a7\u5236Weex \u652f\u6301\u901a\u8fc7\u4e24\u79cd\u7279\u6b8a\u7684\u7279\u6027 if \u548c repeat \u786e\u5b9a\u7ec4\u4ef6\u7684\u663e\u793a\u903b\u8f91\uff0c\u8fd9\u4f1a\u4f7f\u5f97\u6574\u4e2a\u754c\u9762\u7684\u5c55\u793a\u903b\u8f91\u63a7\u5236\u66f4\u52a0\u7b80\u5355\u7075\u6d3b\u3002
+if\u901a\u8fc7\u8bbe\u7f6e if \u7279\u6027\u503c\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u5f53\u524d\u7ec4\u4ef6\u662f\u5426\u663e\u793a\u3002\u5982\u679c\u503c\u4e3a\u771f\uff0c\u5219\u5f53\u524d\u7ec4\u4ef6\u4f1a\u88ab\u6e32\u67d3\u51fa\u6765\uff0c\u5982\u679c\u503c\u4e3a\u5047\u5219\u4f1a\u88ab\u79fb\u9664\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt;Toggle Im">
+  
+    <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 current ">\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  ">\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 current ">\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">
+        \u5c55\u793a\u903b\u8f91\u63a7\u5236
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.945Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u5c55\u793a\u903b\u8f91\u63a7\u5236"><a href="#\u5c55\u793a\u903b\u8f91\u63a7\u5236" class="headerlink" title="\u5c55\u793a\u903b\u8f91\u63a7\u5236"></a>\u5c55\u793a\u903b\u8f91\u63a7\u5236</h1><p>Weex \u652f\u6301\u901a\u8fc7\u4e24\u79cd\u7279\u6b8a\u7684\u7279\u6027 <code>if</code> \u548c <code>repeat</code> \u786e\u5b9a\u7ec4\u4ef6\u7684\u663e\u793a\u903b\u8f91\uff0c\u8fd9\u4f1a\u4f7f\u5f97\u6574\u4e2a\u754c\u9762\u7684\u5c55\u793a\u903b\u8f91\u63a7\u5236\u66f4\u52a0\u7b80\u5355\u7075\u6d3b\u3002</p>
+<h2 id="if"><a href="#if" class="headerlink" title="if"></a><code>if</code></h2><p>\u901a\u8fc7\u8bbe\u7f6e <code>if</code> \u7279\u6027\u503c\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u5f53\u524d\u7ec4\u4ef6\u662f\u5426\u663e\u793a\u3002\u5982\u679c\u503c\u4e3a\u771f\uff0c\u5219\u5f53\u524d\u7ec4\u4ef6\u4f1a\u88ab\u6e32\u67d3\u51fa\u6765\uff0c\u5982\u679c\u503c\u4e3a\u5047\u5219\u4f1a\u88ab\u79fb\u9664\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">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">onclick</span>=<span class="string">"toggle"</span>&gt;</span>Toggle Image<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">image</span> <span class="attr">if</span>=<span class="string">"shown"</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;imageUrl&#125;&#125;"</span> <span class="attr">style</span>=<span class="string">"width: 512; height: 512;"</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 c
 lass="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">imageUrl</span>: <span class="string">'https://gtms02.alicdn.com/tps/i2/TB1QHKjMXXXXXadXVXX20ySQVXX-512-512.png'</span>,</div><div class="line">    <span class="attr">shown</span>: <span class="literal">true</span></div><div class="line">  &#125;,</div><div class="line">  <span class="attr">methods</span>: &#123;</div><div class="line">    <span class="attr">toggle</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">      <span class="keyword">this</span>.shown = !<span class="keyword">this</span>.shown</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/e0999a51fa404f48bbae177f1569cd0e" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a<code>if=&quot;condition&quot;</code> \u548c <code>if=&quot;{{condition}}&quot;</code> \u90fd\u662f\u53ef\u4ee5\u7684\uff0c\u4e24\u8005\u7b49\u4ef7\u4f7f\u7528\u3002</em></p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a<code>if</code> \u4e0d\u80fd\u7528\u5728 <code>&lt;template&gt;</code> \u7684\u6839\u7ec4\u4ef6\u4e0a\uff0c\u5426\u5219\u5c06\u65e0\u6cd5\u88ab Weex \u6b63\u5e38\u7684\u8bc6\u522b\u548c\u5904\u7406\u3002</em></p>
+<h3 id="if-\u4e0d\u4f1a\u963b\u65ad\u5b50\u5143\u7d20\u7684\u6570\u636e\u66f4\u65b0"><a href="#if-\u4e0d\u4f1a\u963b\u65ad\u5b50\u5143\u7d20\u7684\u6570\u636e\u66f4\u65b0" class="headerlink" title="if \u4e0d\u4f1a\u963b\u65ad\u5b50\u5143\u7d20\u7684\u6570\u636e\u66f4\u65b0"></a><code>if</code> \u4e0d\u4f1a\u963b\u65ad\u5b50\u5143\u7d20\u7684\u6570\u636e\u66f4\u65b0</h3><p>\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\u5728\u6570\u636e\u66f4\u65b0\u540e <code>item</code> \u6216 <code>item.image</code> \u4e0d\u5b58\u5728\u7684\u60c5\u51b5\u4e0b\u4f1a\u62a5\u9519\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">if</span>=<span class="string">"&#123;&#123;(item &amp;&amp; item.image)&#125;&#125;"</span> <span class="attr">style</span>=<span class="string">"width: 200; height: 200;"</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: 100; height: 100;"</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;item.image.url&#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">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div></pre></td></tr></table></figur
 e>
+<p>\u539f\u56e0\u5728\u4e8e Weex \u672c\u8eab\u7684\u673a\u5236\u662f\u6570\u636e\u66f4\u65b0\u5728 DOM \u66f4\u65b0\u4e4b\u524d\uff0c\u56e0\u6b64 <code>if</code> \u6570\u636e\u66f4\u65b0\u4e4b\u540e\uff0c\u4e0d\u652f\u6301\u963b\u65ad\u5176\u5b50\u5143\u7d20\u7684\u6570\u636e\u66f4\u65b0\uff0c\u5373 <code>if</code> \u6570\u636e\u66f4\u65b0\u4e3a <code>false</code> \u4e4b\u540e\uff0c\u5185\u90e8\u7684\u5b50\u5143\u7d20\u4ecd\u7136\u4f1a\u89e6\u53d1\u81ea\u8eab\u7684\u6570\u636e\u66f4\u65b0\uff0c\u627e\u4e0d\u5230\u5bf9\u5e94\u5b57\u6bb5\uff0c\u5bfc\u81f4\u62a5\u9519\uff0c\u53ef\u53c2\u8003\u8fd9\u4e2a <a href="https://github.com/alibaba/weex/issues/1758" target="_blank" rel="external">issue</a>\u3002</p>
+<p>\u56e0\u6b64\uff0c\u6709\u4e24\u79cd\u89e3\u51b3\u65b9\u6848\uff1a</p>
+<ul>
+<li><p>\u4e3a <code>img</code> \u7ec4\u4ef6\u7684 <code>src</code> \u4e5f\u589e\u52a0\u5bb9\u9519\u65b9\u6848\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">if</span>=<span class="string">"&#123;&#123;(item &amp;&amp; item.image)&#125;&#125;"</span> <span class="attr">style</span>=<span class="string">"width: 200; height: 200;"</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: 100; height: 100;"</span> <span class="attr">src</span>=<span class="string">"&#123;&#123;item &amp;&amp; item.image &amp;&amp; item.image.url&#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">div</span>&gt;</span></div></pre></td></tr></table></figure>
+</li>
+<li><p>\u5982\u679c\u662f\u5728 <code>repeat</code> \u7684\u5217\u8868\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>track-by</code>\u5f3a\u5236\u4e0d\u590d\u7528\u5b50\u5143\u7d20\u89e3\u51b3\u3002</p>
+</li>
+</ul>
+<h2 id="repeat"><a href="#repeat" class="headerlink" title="repeat"></a><code>repeat</code></h2><p><code>repeat</code> \u7279\u6027\u7528\u4e8e\u91cd\u590d\u6e32\u67d3\u4e00\u7ec4\u76f8\u540c\u7684\u7ec4\u4ef6\u3002\u5b83\u7ed1\u5b9a\u7684\u6570\u636e\u7c7b\u578b\u5fc5\u987b\u4e3a\u6570\u7ec4\uff0c\u6570\u7ec4\u91cc\u7684\u6bcf\u4e00\u9879\u6570\u636e\u53ef\u4ee5\u4f53\u73b0\u5728\u4e0d\u540c\u7684\u7ec4\u4ef6\u7279\u6027\u3001\u6837\u5f0f\u3001\u4e8b\u4ef6\u7ed1\u5b9a\u7b49\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">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">"person in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;person.nickname&#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">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">.male</span> &#123; <span class="attribute">background-color</span>: <span class="number">#9999ff</span>; &#125;</div><div class="line">  <span class="selector-class">.female</span> &#123; <span class="attribute">background-color</span>: <span class="number">#ff9999</span>; &#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">list</span>: [</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'male'</span>, <span
  class="attr">nickname</span>: <span class="string">'Li Lei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'female'</span>, <span class="attr">nickname</span>: <span class="string">'Han Meimei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Jim Green'</span> &#125;</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><a href="http://dotwe.org/8c87aac2820531090181c32fca41e913" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u6b64\u5916\uff0c<code>repeat</code> \u7279\u6027\u8fd8\u652f\u6301\u7ed1\u5b9a\u6570\u7ec4\u4e2d\u6570\u636e\u9879\u76ee\u7684\u7d22\u5f15\u503c\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">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">"(index, person) in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;index&#125;&#125; - &#123;&#123;person.nickname&#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">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">.male</span> &#123; <span class="attribute">background-color</span>: <span class="number">#9999ff</span>; &#125;</div><div class="line">  <span class="selector-class">.female</span> &#123; <span class="attribute">background-color</span>: <span class="number">#ff9999</span>; &#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">list</span>: [</div><div class="line">      &#123; <span class="attr">gender</span>: 
 <span class="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Li Lei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'female'</span>, <span class="attr">nickname</span>: <span class="string">'Han Meimei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Jim Green'</span> &#125;</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><a href="http://dotwe.org/65d348256ab5c54aa996d3ee6b4ea115" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u6bcf\u4e00\u4e2a\u6635\u79f0\u4e4b\u524d\u90fd\u6709\u5bf9\u5e94\u6570\u7ec4\u9879\u76ee\u7684\u7d22\u5f15\u503c\u3002</p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a\u540c\u6837\u7684 <code>repeat=&quot;...&quot;</code> \u548c <code>repeat=&quot;{{...}}&quot;</code> \u90fd\u662f\u53ef\u4ee5\u7684\uff0c\u4e24\u8005\u7b49\u4ef7\u4f7f\u7528\u3002</em></p>
+<p><em>\u6ce8\u610f\u4e8b\u9879\uff1a<code>if</code> \u4e0d\u80fd\u7528\u5728 <code>&lt;template&gt;</code> \u7684\u6839\u7ec4\u4ef6\u4e0a\uff0c\u5426\u5219\u5c06\u65e0\u6cd5\u88ab Weex \u6b63\u5e38\u7684\u8bc6\u522b\u548c\u5904\u7406\u3002</em></p>
+<p><strong>\u6ce8\u610f\u4e8b\u9879: \u5f53\u4f60\u4fee\u6539 <code>repeat</code> \u4e2d\u7684\u6570\u7ec4\u65f6\uff0c\u5728\u5199\u6cd5\u4e0a\u4f1a\u53d7\u5230\u4e00\u5b9a\u7684\u9650\u5236\uff0c\u5177\u4f53\u5982\u4e0b\uff1a</strong></p>
+<p><strong>\u76f4\u63a5\u901a\u8fc7\u201c\u89d2\u6807\u201d\u4fee\u6539\u6570\u7ec4\u7684\u67d0\u4e2a\u9879\u76ee (\u5982 <code>this.items[0] = ...</code>) \u662f\u4e0d\u4f1a\u89e6\u53d1\u89c6\u56fe\u81ea\u52a8\u66f4\u65b0\u7684\u3002\u6211\u4eec\u5728\u6570\u7ec4\u7684\u539f\u578b\u4e0a\u63d0\u4f9b\u4e86\u4e00\u4e2a\u989d\u5916\u7684\u65b9\u6cd5\uff1a<code>this.items.$set(index, item)</code> \u6765\u5b8c\u6210\u76f8\u540c\u7684\u4e8b\u60c5\u3002</strong></p>
+<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="comment">// \u548c `this.items[0] = ...` \u4f5c\u7528\u76f8\u540c\uff0c\u4f46\u4f1a\u81ea\u52a8\u89e6\u53d1\u89c6\u56fe\u66f4\u65b0</span></div><div class="line"><span class="keyword">this</span>.items.$set(<span class="number">0</span>, &#123; <span class="attr">childMsg</span>: <span class="string">'Changed!'</span>&#125;)</div></pre></td></tr></table></figure>
+<p><strong>\u76f4\u63a5\u901a\u8fc7\u4fee\u6539 <code>length</code> \u6765\u6539\u53d8\u6570\u7ec4\u957f\u5ea6 (\u5982 <code>this.items.length = 0</code>) \u4e5f\u662f\u4e0d\u4f1a\u89e6\u53d1\u89c6\u56fe\u81ea\u52a8\u66f4\u65b0\u7684\u3002\u6211\u4eec\u63a8\u8350\u60a8\u76f4\u63a5\u8d4b\u503c\u4e00\u4e2a\u65b0\u7684\u7a7a\u6570\u7ec4\u628a\u65e7\u7684\u66ff\u6362\u6389\u3002</strong></p>
+<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="comment">// \u548c `this.items.length = 0` \u4f5c\u7528\u76f8\u540c\uff0c\u4f46\u4f1a\u81ea\u52a8\u89e6\u53d1\u89c6\u56fe\u66f4\u65b0</span></div><div class="line"><span class="keyword">this</span>.items = []</div></pre></td></tr></table></figure>
+<h3 id="repeat-\u7279\u6027\u4e2d\u7684-index-\u5f62\u53c2"><a href="#repeat-\u7279\u6027\u4e2d\u7684-index-\u5f62\u53c2" class="headerlink" title="repeat \u7279\u6027\u4e2d\u7684 $index \u5f62\u53c2"></a><code>repeat</code> \u7279\u6027\u4e2d\u7684 <code>$index</code> \u5f62\u53c2</h3><p>\u5728 <code>repeat</code> \u7279\u6027\u503c\u4e2d\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u7d22\u5f15\u503c\u7684\u5f62\u53c2\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u7ed1\u5b9a\u5f62\u53c2 <code>$index</code> \u6765\u5c55\u793a\u6570\u7ec4\u9879\u76ee\u7684\u7d22\u5f15\u503c\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">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">"person in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;$index&#125;&#125; - &#123;&#123;person.nickname&#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">template</span>&g
 t;</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">.male</span> &#123; <span class="attribute">background-color</span>: <span class="number">#9999ff</span>; &#125;</div><div class="line">  <span class="selector-class">.female</span> &#123; <span class="attribute">background-color</span>: <span class="number">#ff9999</span>; &#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">list</span>: [</div><div class="line">      &#123; <span class="attr">gender</span>: <span cl
 ass="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Li Lei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'female'</span>, <span class="attr">nickname</span>: <span class="string">'Han Meimei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">gender</span>: <span class="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Jim Green'</span> &#125;</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><a href="http://dotwe.org/65d348256ab5c54aa996d3ee6b4ea115" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u6e32\u67d3\u6548\u679c\u548c\u4e0a\u4e00\u4e2a\u4f8b\u5b50\u5e94\u8be5\u662f\u76f8\u540c\u7684\u3002</p>
+<h3 id="\u5728-repeat-\u4e2d\u4f7f\u7528-track-by-\u7279\u6027\u8ffd\u8e2a\u53d8\u5316"><a href="#\u5728-repeat-\u4e2d\u4f7f\u7528-track-by-\u7279\u6027\u8ffd\u8e2a\u53d8\u5316" class="headerlink" title="\u5728 repeat \u4e2d\u4f7f\u7528 track-by \u7279\u6027\u8ffd\u8e2a\u53d8\u5316"></a>\u5728 <code>repeat</code> \u4e2d\u4f7f\u7528 <code>track-by</code> \u7279\u6027\u8ffd\u8e2a\u53d8\u5316</h3><p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5f53\u66f4\u65b0 <code>repeat</code> \u4e2d\u7ed1\u5b9a\u7684\u6570\u7ec4\u65f6\uff0c\u6240\u6709\u6570\u7ec4\u9879\u76ee\u5173\u8054\u7684\u7ec4\u4ef6\u90fd\u4f1a\u88ab\u91cd\u65b0\u6e32\u67d3\u3002\u5982\u679c\u5176\u4e2d\u90e8\u5206\u7d22\u5f15\u503c\u5bf9\u5e94\u7684\u6570\u636e\u672a\u53d1\u751f\u53d8\u66f4\uff0c\u90a3\u4e48\u6700\u597d\u662f\u8ba9\u8fd9\u4e9b\u7ec4\u4ef6\u5728\u6e32\u67d3\u5c42\u4fdd\u6301\u539f\u6837\uff0c\u4ec5\u66f4\u65b0\u6570\u636e\u6709\u53d8\u5316\u7684\u8282\u70b9\u3002Weex \u63d0\u4f9b\u4e86 <code>track-by</code> \u7279\u6027\u6765\u8f85\u52a9\u5224\u65ad\u54ea\u4e9b\u6570\u7ec4\u9879\u76ee\u53d1\u751f\u4e86\u6539\u53d8\u3002</p>
+<p>\u9996\u5148 <code>track-by</code> \u7279\u6027\u7684\u503c\u5fc5\u987b\u662f\u5728\u6bcf\u4e00\u6761\u6570\u7ec4\u9879\u76ee\u4e2d\u90fd\u6709\u4e14\u503c\u6ca1\u6709\u91cd\u590d\u7684\u4e00\u4e2a\u5b57\u6bb5\u540d\uff0c\u7528\u6765\u533a\u5206\u548c\u8ffd\u8e2a\u6bcf\u4e00\u6761\u6570\u636e\u9879\u589e\u5220\u4e0e\u5426\u6216\u6b21\u5e8f\u53d8\u5316\u4e0e\u5426\u7684\u5173\u952e\u4f9d\u636e\u3002\u6bcf\u5f53\u6570\u7ec4\u53d1\u751f\u53d8\u5316\u4e4b\u540e\uff0c\u65b0\u8001\u6570\u7ec4\u6570\u636e\u4f1a\u6839\u636e <code>track-by</code> \u7279\u6027\u503c\u6240\u4ee3\u8868\u7684\u5b57\u6bb5\u91cd\u65b0\u5339\u914d\uff0c\u7136\u540e\u518d\u51b3\u5b9a\u6e32\u67d3\u5c42\u5e94\u8be5\u65b0\u5efa\u6216\u5220\u9664\u4e00\u4e2a\u7ec4\u4ef6\uff1f\u8fd8\u662f\u79fb\u52a8\u4e00\u4e2a\u7ec4\u4ef6\uff1f\u8fd8\u662f\u8bb2\u7ec4\u4ef6\u4fdd\u6301\u539f\u6765\u7684\u4f4d\u7f6e\u3002\u9ed8\u8ba4\u7684 <code>track-by</code> \u7684\u503c\u5c31\u662f\u6570\u7ec4\u7684\u7d22\u5f15\u503c\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">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">"person in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;$index&#125;&#125; - &#123;&#123;person.id&#125;&#125; - &#123;&#123;person.nickname&#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">text</span>&gt;</span>----<span class="tag">&lt;/<span class="name"
 >text</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">repeat</span>=<span class="string">"person in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span> <span class="attr">track-by</span>=<span class="string">"id"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;$index&#125;&#125; - &#123;&#123;person.id&#125;&#125; - &#123;&#123;person.nickname&#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">text</span>&gt;</span>----<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line">    <span class="comment">&lt;!-- something wrong here: duplicated track-by value --&gt;</span></di
 v><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">repeat</span>=<span class="string">"person in list"</span> <span class="attr">class</span>=<span class="string">"&#123;&#123;person.gender&#125;&#125;"</span> <span class="attr">track-by</span>=<span class="string">"nickname"</span>&gt;</span></div><div class="line">      <span class="tag">&lt;<span class="name">text</span>&gt;</span>&#123;&#123;$index&#125;&#125; - &#123;&#123;person.id&#125;&#125; - &#123;&#123;person.nickname&#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">template</span>&gt;</span></div><div class="line"></div><div class="line"><span class="tag">&lt;<span class="name">style</span>&gt;</span><span clas
 s="css"></span></div><div class="line">  <span class="selector-class">.male</span> &#123; <span class="attribute">background-color</span>: <span class="number">#9999ff</span>; &#125;</div><div class="line">  <span class="selector-class">.female</span> &#123; <span class="attribute">background-color</span>: <span class="number">#ff9999</span>; &#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">list</span>: [</div><div class="line">      &#123; <span class="attr">id</span>: <span class="number">11</span>, <span class="attr">gender</span>: <span class="string">'male'</span>, <span class="attr">nickname</span>: <span
  class="string">'Li Lei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">id</span>: <span class="number">22</span>, <span class="attr">gender</span>: <span class="string">'female'</span>, <span class="attr">nickname</span>: <span class="string">'Han Meimei'</span> &#125;,</div><div class="line">      &#123; <span class="attr">id</span>: <span class="number">33</span>, <span class="attr">gender</span>: <span class="string">'male'</span>, <span class="attr">nickname</span>: <span class="string">'Jim Green'</span> &#125;</div><div class="line">    ]</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="keyword">this</span>.list.unshift(&#123; <span class="attr">id</span>: <span class="number">44</span>, <span class="attr">gender</span>: <span class="string">'female'</span>, <span clas
 s="attr">nickname</span>: <span class="string">'Han Meimei'</span> &#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/c124bfc21e6d92271356acbea232089b" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7b2c\u4e00\u4e2a\u5217\u8868\u7684\u66f4\u65b0\u7b56\u7565\u662f\uff1a</p>
+<ol>
+<li>\u628a\u7b2c\u4e00\u4e2a <code>&lt;text&gt;</code> \u8d4b\u503c\u4e3a <code>Han Meimei</code></li>
+<li>\u7b2c\u4e8c\u4e2a\u8d4b\u503c\u4e3a <code>Li Lei</code></li>
+<li>\u7b2c\u4e09\u4e2a\u8d4b\u503c\u4e3a <code>Han Meimei</code></li>
+<li>\u6700\u540e\u65b0\u5efa\u4e00\u4e2a <code>&lt;text&gt;</code> \u5e76\u8d4b\u503c\u4e3a <code>Jin Green</code></li>
+</ol>
+<p>\u7b2c\u4e8c\u4e2a\u5217\u8868\u7684\u66f4\u65b0\u7b56\u7565\u662f\uff1a</p>
+<ol>
+<li>\u5728\u6700\u524d\u9762\u65b0\u5efa\u4e00\u4e2a <code>&lt;text&gt;</code> \u5e76\u8d4b\u503c\u4e3a <code>Han Meimei</code></li>
+</ol>
+<p>\u7b2c\u4e09\u4e2a\u5217\u8868\u7684\u66f4\u65b0\u4f1a\u9047\u5230\u95ee\u9898\uff0c\u56e0\u4e3a\u6709\u4e24\u4e2a\u6570\u7ec4\u9879\u76ee\u7684 <code>nickname</code> \u503c\u90fd\u662f <code>Han Meimei</code> \u6240\u4ee5\u9020\u6210\u610f\u6599\u4e4b\u5916\u7684\u6e32\u67d3\u7ed3\u679c (\u53ea\u6e32\u67d3\u4e86\u4e09\u4e2a\u6570\u7ec4\u9879\u76ee)\u3002</p>
+<p>\u4e0b\u4e00\u8282\uff1a<a href="./render-logic.html">\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</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/display-logic.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/syntax/display-logic.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/events.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/events.html b/content/cn/v-0.10/guide/syntax/events.html
new file mode 100644
index 0000000..a74e6ac
--- /dev/null
+++ b/content/cn/v-0.10/guide/syntax/events.html
@@ -0,0 +1,540 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u4e8b\u4ef6\u5904\u7406 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u4e8b\u4ef6\u5904\u7406Weex \u5141\u8bb8\u5bf9 &amp;lt;template&amp;gt; \u4e2d\u7684\u5143\u7d20\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u57fa\u672c\u8bed\u6cd5\u4ee5 on... \u5f00\u5934\u7684\u5c31\u662f\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\u7684\u7279\u6027\uff0c\u7279\u6027\u540d\u4e2d on \u4e4b\u540e\u7684\u90e8\u5206\u5c31\u662f\u4e8b\u4ef6\u7684\u7c7b\u578b\uff0c\u7279\u6027\u7684\u503c\u5c31\u662f\u5904\u7406\u8be5\u4e8b\u4ef6\u7684\u51fd\u6570\u540d\u3002\u51fd\u6570\u540d\u5916\u4e0d\u9700\u8981\u6dfb\u52a0 mustache \u8bed\u6cd5\u4e2d\u7684\u5927\u62ec\u53f7\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u4e8b\u4ef6\u5904\u7406">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/syntax/events.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u4e8b\u4ef6\u5904\u7406Weex \u5141\u8bb8\u5bf9 &amp;lt;template&amp;gt; \u4e2d\u7684\u5143\u7d20\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u57fa\u672c\u8bed\u6cd5\u4ee5 on... \u5f00\u5934\u7684\u5c31\u662f\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\u7684\u7279\u6027\uff0c\u7279\u6027\u540d\u4e2d on \u4e4b\u540e\u7684\u90e8\u5206\u5c31\u662f\u4e8b\u4ef6\u7684\u7c7b\u578b\uff0c\u7279\u6027\u7684\u503c\u5c31\u662f\u5904\u7406\u8be5\u4e8b\u4ef6\u7684\u51fd\u6570\u540d\u3002\u51fd\u6570\u540d\u5916\u4e0d\u9700\u8981\u6dfb\u52a0 mustache \u8bed\u6cd5\u4e2d\u7684\u5927\u62ec\u53f7\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.946Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u4e8b\u4ef6\u5904\u7406">
+<meta name="twitter:description" content="\u4e8b\u4ef6\u5904\u7406Weex \u5141\u8bb8\u5bf9 &amp;lt;template&amp;gt; \u4e2d\u7684\u5143\u7d20\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002
+\u57fa\u672c\u8bed\u6cd5\u4ee5 on... \u5f00\u5934\u7684\u5c31\u662f\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\u7684\u7279\u6027\uff0c\u7279\u6027\u540d\u4e2d on \u4e4b\u540e\u7684\u90e8\u5206\u5c31\u662f\u4e8b\u4ef6\u7684\u7c7b\u578b\uff0c\u7279\u6027\u7684\u503c\u5c31\u662f\u5904\u7406\u8be5\u4e8b\u4ef6\u7684\u51fd\u6570\u540d\u3002\u51fd\u6570\u540d\u5916\u4e0d\u9700\u8981\u6dfb\u52a0 mustache \u8bed\u6cd5\u4e2d\u7684\u5927\u62ec\u53f7\u3002\u4f8b\u5982\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text onclick=&quot;toggle&quot;&amp;gt">
+  
+    <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 current ">\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  ">\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 current ">\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">
+        \u4e8b\u4ef6\u5904\u7406
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.946Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u4e8b\u4ef6\u5904\u7406"><a href="#\u4e8b\u4ef6\u5904\u7406" class="headerlink" title="\u4e8b\u4ef6\u5904\u7406"></a>\u4e8b\u4ef6\u5904\u7406</h1><p>Weex \u5141\u8bb8\u5bf9 <code>&lt;template&gt;</code> \u4e2d\u7684\u5143\u7d20\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002</p>
+<h2 id="\u57fa\u672c\u8bed\u6cd5"><a href="#\u57fa\u672c\u8bed\u6cd5" class="headerlink" title="\u57fa\u672c\u8bed\u6cd5"></a>\u57fa\u672c\u8bed\u6cd5</h2><p>\u4ee5 <code>on...</code> \u5f00\u5934\u7684\u5c31\u662f\u7528\u4e8e\u7ed1\u5b9a\u4e8b\u4ef6\u7684\u7279\u6027\uff0c\u7279\u6027\u540d\u4e2d <code>on</code> \u4e4b\u540e\u7684\u90e8\u5206\u5c31\u662f\u4e8b\u4ef6\u7684\u7c7b\u578b\uff0c\u7279\u6027\u7684\u503c\u5c31\u662f\u5904\u7406\u8be5\u4e8b\u4ef6\u7684\u51fd\u6570\u540d\u3002<em>\u51fd\u6570\u540d\u5916\u4e0d\u9700\u8981\u6dfb\u52a0 mustache \u8bed\u6cd5\u4e2d\u7684\u5927\u62ec\u53f7</em>\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">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">onclick</span>=<span class="string">"toggle"</span>&gt;</span>Toggle: &#123;&#123;result&#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">result</span>: <span class="literal">true</span></div><div class="line">    &#125;,</div><div class="line">    <span class="attr">methods</span>: &#123;</div><div class="line">      <span class="attr">toggle</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">        <span class="keyword">this</span>.result = !<span class="keyword">this</span>.result</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/2f9f910a60ffc1ed54c797390d6615e1" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570"><a href="#\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570" class="headerlink" title="\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570"></a>\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570</h2><p>\u540c\u65f6\u6211\u4eec\u4e5f\u652f\u6301\u5728\u4e8b\u4ef6\u7ed1\u5b9a\u7684\u7279\u6027\u503c\u4e2d\u5185\u8054\u5199\u660e\u88ab\u4f20\u5165\u7684\u53c2\u6570\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">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">onclick</span>=<span class="string">"update(1, 2)"</span>&gt;</span>Result: &#123;&#123;result&#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="l
 ine">      <span class="attr">result</span>: <span class="string">'&lt;empty&gt;'</span></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">x, y</span>) </span>&#123;</div><div class="line">        <span class="keyword">this</span>.result = x + y</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/777056d8985e73567464e2d66cbe73fc" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u7279\u6b8a\u7684\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570"><a href="#\u7279\u6b8a\u7684\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570" class="headerlink" title="\u7279\u6b8a\u7684\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570"></a>\u7279\u6b8a\u7684\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u53c2\u6570</h2><p>\u989d\u5916\u7684\uff0c\u5728\u8fd9\u79cd\u5185\u8054\u7684\u4e8b\u4ef6\u7ed1\u5b9a\u5199\u6cd5\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u7279\u6b8a\u7684\u53c2\u6570 <code>$event</code>\uff0c\u4ee3\u8868\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61\uff0c\u5373\u9ed8\u8ba4\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u3002\u6240\u4ee5 <code>&lt;template&gt;</code> \u4e2d\u7684 <code>onclick=&quot;foo&quot;</code> \u548c <code>onclick=&quot;foo($event)&quot;</code> \u662f\u7b49\u4ef7\u7684\uff0c<code>$event</code> \u7684\u7528\u6cd5\u53ef\u4ee5\u66f4\u591a\u53c2\u8003\u4e0b\u9762\u7684\u4f8b\u5b50</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">onclick</span>=<span class="string">"update($event, 1, 2)"</span>&gt;</span>Result: &#123;&#123;result&#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">result</span>: <span class="string">'&lt;empty&gt;'</span></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, x, y</span>) </span>&#123;</div><div class="line">        <span class="keyword">this</span>.result = e.type + (x + y)</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/5e1e7c22f036725e44c3ff492f173400" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h2 id="\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61"><a href="#\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61" class="headerlink" title="\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61"></a>\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61</h2><p>\u6bcf\u5f53\u4e00\u6b21\u4e8b\u4ef6\u88ab\u89e6\u53d1\u7684\u65f6\u5019\uff0c\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u4f1a\u9ed8\u8ba4\u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f20\u9012\u7ed9\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\uff0c\u6216\u4ee5 <code>$event</code> \u5f62\u53c2\u7684\u65b9\u5f0f\u51fa\u73b0\u5728\u5185\u8054\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u4e2d\u3002</p>
+<p>\u6bcf\u4e2a\u4e8b\u4ef6\u63cf\u8ff0\u5bf9\u8c61\u81f3\u5c11\u5305\u542b\u4ee5\u4e0b\u51e0\u4e2a\u7279\u6027\uff1a</p>
+<ul>
+<li><code>type</code> (<code>string</code>): \u4e8b\u4ef6\u540d\u79f0, \u5982: <code>click</code></li>
+<li><code>target</code> (<code>Element</code>): \u76ee\u6807\u5143\u7d20</li>
+<li><code>timestamp</code> (<code>number</code>): \u4e8b\u4ef6\u89e6\u53d1\u65f6\u7684\u65f6\u95f4\u6233\u6570\u5b57</li>
+</ul>
+<p>\u4e0b\u4e00\u8282\uff1a<a href="./display-logic.html">\u5c55\u793a\u903b\u8f91\u63a7\u5236</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/events.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/syntax/events.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/id.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/id.html b/content/cn/v-0.10/guide/syntax/id.html
new file mode 100644
index 0000000..69f3336
--- /dev/null
+++ b/content/cn/v-0.10/guide/syntax/id.html
@@ -0,0 +1,535 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u627e\u8282\u70b9 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u627e\u8282\u70b9\u5728 Weex \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u7279\u5b9a\u7684\u5b50\u7ec4\u4ef6\u4e0a\u8bbe\u7f6e id \u7279\u6027\uff0c\u4ee5\u6b64\u5728\u8be5 &amp;lt;template&amp;gt; \u5185\u552f\u4e00\u6807\u8bc6\u8fd9\u4e2a\u7ec4\u4ef6\u3002
+\u83b7\u53d6\u5b50\u7ec4\u4ef6\u60a8\u53ef\u4ee5\u5728\u7236\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e2d\u4f7f\u7528 this.$el(id) \u6765\u627e\u5230\u8be5\u7ec4\u4ef6\uff0c\u4ee5\u8fd0\u7528 scrollToElement() \u4e3a\u4f8b\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text id=&quot;goto-top&quot;&amp;gt;Top&amp;lt;/t">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u627e\u8282\u70b9">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/guide/syntax/id.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u627e\u8282\u70b9\u5728 Weex \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u7279\u5b9a\u7684\u5b50\u7ec4\u4ef6\u4e0a\u8bbe\u7f6e id \u7279\u6027\uff0c\u4ee5\u6b64\u5728\u8be5 &amp;lt;template&amp;gt; \u5185\u552f\u4e00\u6807\u8bc6\u8fd9\u4e2a\u7ec4\u4ef6\u3002
+\u83b7\u53d6\u5b50\u7ec4\u4ef6\u60a8\u53ef\u4ee5\u5728\u7236\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e2d\u4f7f\u7528 this.$el(id) \u6765\u627e\u5230\u8be5\u7ec4\u4ef6\uff0c\u4ee5\u8fd0\u7528 scrollToElement() \u4e3a\u4f8b\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text id=&quot;goto-top&quot;&amp;gt;Top&amp;lt;/t">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.947Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u627e\u8282\u70b9">
+<meta name="twitter:description" content="\u627e\u8282\u70b9\u5728 Weex \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u7279\u5b9a\u7684\u5b50\u7ec4\u4ef6\u4e0a\u8bbe\u7f6e id \u7279\u6027\uff0c\u4ee5\u6b64\u5728\u8be5 &amp;lt;template&amp;gt; \u5185\u552f\u4e00\u6807\u8bc6\u8fd9\u4e2a\u7ec4\u4ef6\u3002
+\u83b7\u53d6\u5b50\u7ec4\u4ef6\u60a8\u53ef\u4ee5\u5728\u7236\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e2d\u4f7f\u7528 this.$el(id) \u6765\u627e\u5230\u8be5\u7ec4\u4ef6\uff0c\u4ee5\u8fd0\u7528 scrollToElement() \u4e3a\u4f8b\uff1a
+&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;text id=&quot;goto-top&quot;&amp;gt;Top&amp;lt;/t">
+  
+    <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 current ">\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  ">\u7ec4\u4ef6\u5c01\u88c5</a>
+              </li>
+            
+              <li>
+                <a href="/cn/v-0.10/guide/syntax/id.html" class="sidebar-link current ">\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">
+        \u627e\u8282\u70b9
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.947Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u627e\u8282\u70b9"><a href="#\u627e\u8282\u70b9" class="headerlink" title="\u627e\u8282\u70b9"></a>\u627e\u8282\u70b9</h1><p>\u5728 Weex \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u7279\u5b9a\u7684\u5b50\u7ec4\u4ef6\u4e0a\u8bbe\u7f6e <code>id</code> \u7279\u6027\uff0c\u4ee5\u6b64\u5728\u8be5 <code>&lt;template&gt;</code> \u5185\u552f\u4e00\u6807\u8bc6\u8fd9\u4e2a\u7ec4\u4ef6\u3002</p>
+<h2 id="\u83b7\u53d6\u5b50\u7ec4\u4ef6"><a href="#\u83b7\u53d6\u5b50\u7ec4\u4ef6" class="headerlink" title="\u83b7\u53d6\u5b50\u7ec4\u4ef6"></a>\u83b7\u53d6\u5b50\u7ec4\u4ef6</h2><p>\u60a8\u53ef\u4ee5\u5728\u7236\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e2d\u4f7f\u7528 <code>this.$el(id)</code> \u6765\u627e\u5230\u8be5\u7ec4\u4ef6\uff0c\u4ee5\u8fd0\u7528 <code>scrollToElement()</code> \u4e3a\u4f8b\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">id</span>=<span class="string">"goto-top"</span>&gt;</span>Top<span class="tag">&lt;/<span class="name">text</span>&gt;</span></div><div class="line">    <span class="tag">&lt;<span class="name">div</span> <span class="attr">style</span>=<span class="string">"height: 10000; background-color: #999999;"</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">text</span> <span class="attr">onclick</span>=<span class="string">"back2Top"</span>&gt;</span>Back to Top<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="keyword">var</span> dom = <span class="built_in">require</span>(<span class="string">'@weex-module/dom'</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">back2Top</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">        <span class="keyword">var</span> el = <span class="keyword">this</span>.$el(<span class="string">'goto-top'</span>)</div><div class="line">        dom.scrollToElement(el, &#123; <span class="attr">offset</span>: <span class="number"
 >10</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></pre></td></tr></table></figure>
+<p><a href="http://dotwe.org/ed07068ef6f038d6c39af6c971ad08a0" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<h3 id="id-\u548c-repeat-\u7279\u6027\u914d\u5408\u4f7f\u7528"><a href="#id-\u548c-repeat-\u7279\u6027\u914d\u5408\u4f7f\u7528" class="headerlink" title="id \u548c repeat \u7279\u6027\u914d\u5408\u4f7f\u7528"></a><code>id</code> \u548c <code>repeat</code> \u7279\u6027\u914d\u5408\u4f7f\u7528</h3><p><code>id</code> \u4e5f\u53ef\u4ee5\u548c <code>repeat</code> \u8bed\u6cd5\u914d\u5408\u4f7f\u7528\uff0c\u5173\u4e8e <code>repeat</code> \u66f4\u591a\u8be6\u89c1 <a href="./display-logic.html">\u5c55\u793a\u903b\u8f91\u63a7\u5236</a>\uff0c\u4f46\u662f\u8981\u786e\u4fdd\u5faa\u73af\u7684\u8282\u70b9\u9700\u8981\u7528\u4e0d\u540c\u7684 <code>id</code>\uff0c\u6bd4\u5982\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">image</span></span></div><div class="line">      <span class="attr">repeat</span>=<span class="string">"image in images"</span></div><div class="line">      <span class="attr">id</span>=<span class="string">"img-&#123;&#123;image.id&#125;&#125;"</span></div><div class="line">      <span class="attr">src</span>=<span class="string">"&#123;&#123;image.url&#125;&#125;"</span></div><div class="line">      <span class="attr">onclick</span>=<span class="string">"getImageId"</span>&gt;<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 c
 lass="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">images</span>: [</div><div class="line">      &#123;<span class="attr">id</span>: <span class="number">1</span>, <span class="attr">url</span>: <span class="string">'...'</span>&#125;,</div><div class="line">      &#123;<span class="attr">id</span>: <span class="number">2</span>, <span class="attr">url</span>: <span class="string">'...'</span>&#125;,</div><div class="line">      &#123;<span class="attr">id</span>: <span class="number">3</span>, <span class="attr">url</span>: <span class="string">'...'</span>&#125;,</div><div class="line">      ...</div><div class="line">    ]</div><div class="line">  &#125;,</div><div class="line">  <span cla
 ss="attr">methods</span>: &#123;</div><div class="line">    <span class="attr">getImageId</span>: <span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>&#123;</div><div class="line">      <span class="comment">// get e.target.id</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>
+<h3 id="\u83b7\u53d6\u81ea\u5b9a\u4e49\u5b50\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587"><a href="#\u83b7\u53d6\u81ea\u5b9a\u4e49\u5b50\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587" class="headerlink" title="\u83b7\u53d6\u81ea\u5b9a\u4e49\u5b50\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587"></a>\u83b7\u53d6\u81ea\u5b9a\u4e49\u5b50\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587</h3><p>\u53e6\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>this.$vm(id)</code> \u65b9\u6cd5\u53ef\u4ee5\u8bbf\u95ee\u81ea\u5b9a\u4e49\u5b50\u7ec4\u4ef6\u7684\u4e0a\u4e0b\u6587\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> <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">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="attr">title</span>: <span class="literal">null</span></div><div class="line">      &#125;,</div><div class="line">      <span class="attr">methods</span>: &#123;</div><div class="line">        <span class="attr">setTitle</span>: <span class="function"><span class="keyword">function</span> (<span class="params">text</span>) </span>&#123;</div><div class="line">          <span class="keyword">this</span>.title = text</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">template</span>&gt;</span></d
 iv><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">id</span>=<span class="string">"sub"</span> <span class="attr">title</span>=<span class="string">"Hello"</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">"update"</span>&gt;</span>Click Me to Update<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;</d
 iv><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>.$vm(<span class="string">'sub'</span>).setTitle(<span class="string">'Updated'</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>
+<p><a href="http://dotwe.org/1d332e6c238462e841743035c6bc697e" target="_blank" rel="external">\u4f53\u9a8c\u4e00\u4e0b</a></p>
+<p>\u5b9e\u9645\u4e0a\uff0c\u5982\u4e0a\u8ff0\u7684\u4f8b\u5b50\uff0c\u6211\u4eec\u627e\u5230\u5b50\u7ec4\u4ef6\u4e0a\u4e0b\u6587\u4e4b\u540e\uff0c\u76f4\u63a5\u5728\u8fd9\u4e2a\u4e0a\u4e0b\u6587\u4e2d\u8c03\u7528\u5b50\u7ec4\u4ef6\u65b9\u6cd5\u6216\u4fee\u6539\u5b50\u7ec4\u4ef6\u7684\u6570\u636e\u5e76\u4e0d\u662f\u6211\u4eec\u8ba4\u4e3a\u6700\u597d\u7684\u65b9\u5f0f\uff0c\u6211\u4eec\u66f4\u503e\u5411\u4e8e\u901a\u8fc7\u4e00\u5957\u786e\u5b9a\u7684\u7ec4\u4ef6\u95f4\u901a\u4fe1\u673a\u5236\u6765\u5b8c\u6210\u8fd9\u4e00\u5de5\u4f5c\u3002</p>
+<h3 id="\u83b7\u53d6\u7236\u7ea7\u7ec4\u4ef6\u6216\u5176\u4e0a\u4e0b\u6587"><a href="#\u83b7\u53d6\u7236\u7ea7\u7ec4\u4ef6\u6216\u5176\u4e0a\u4e0b\u6587" class="headerlink" title="\u83b7\u53d6\u7236\u7ea7\u7ec4\u4ef6\u6216\u5176\u4e0a\u4e0b\u6587"></a>\u83b7\u53d6\u7236\u7ea7\u7ec4\u4ef6\u6216\u5176\u4e0a\u4e0b\u6587</h3><p>\u9664\u4e86\u53ef\u4ee5\u81ea\u4e0a\u800c\u4e0b\u5bfb\u627e\u7ec4\u4ef6\u6216\u5176\u4e0a\u4e0b\u6587\uff0cWeex \u4e5f\u652f\u6301\u81ea\u4e0b\u800c\u4e0a\u505a\u76f8\u540c\u7684\u4e8b\u60c5\u3002\u5f53\u524d\u4e0a\u4e0b\u6587\u4e2d\u7684 <code>this._parent</code> \u53ef\u4ee5\u83b7\u53d6\u5176\u7236\u7ea7\u4e0a\u4e0b\u6587\u3002\u9664\u4e86\u7236\u7ea7\u4e0a\u4e0b\u6587\uff0c\u5bf9\u4e8e\u7236\u7ea7\u7ec4\u4ef6\u672c\u8eab\uff0c\u76f8\u5173\u5904\u7406\u4e5f\u53ef\u4ee5\u57fa\u4e8e\u5148\u83b7\u53d6\u7236\u7ea7\u4e0a\u4e0b\u6587\uff0c\u7136\u540e\u5728\u7236\u7ea7\u7ec4\u4ef6\u5185\u90e8\u5b8c\u6210\u66f4\u591a\u66f4\u7ec6\u81f4\u7684\u5904\u7406\u3002\u66f4\u591a\u5185\u5bb9\u53ef\u4ee5\u6df1\u5165\u4e86\u89e3\u7ec4\u4ef6\u95f4\u901a\u4fe1\u7684\u90e8\u5206\u3002</p>
+<p>_\u6ce8\u610f\u4e8b\u9879\uff1a\u5728\u672a\u6765\u7684\u7248\u672c\u4e2d <code>this._parent</code> \u5c06\u6539\u4e3a <code>this.$parent</code>\u3002_</p>
+<p>\u4e0b\u4e00\u7bc7\uff1a <a href="./comm.html">\u7ec4\u4ef6\u95f4\u901a\u4fe1</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/id.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/guide/syntax/id.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>