You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/02 03:54:17 UTC
[25/39] incubator-weex-site git commit: * update site
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/guide/syntax/index.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/index.html b/content/cn/v-0.10/guide/syntax/index.html
index f50a393..d087538 100644
--- a/content/cn/v-0.10/guide/syntax/index.html
+++ b/content/cn/v-0.10/guide/syntax/index.html
@@ -5,49 +5,6 @@
<title>\u8bed\u6cd5\u4ecb\u7ecd | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u8bed\u6cd5\u7efc\u8ff0Weex \u4ee3\u7801\u7531 &lt;template&gt;\u3001&lt;style&gt;\u3001&lt;script&gt; \u4e09\u4e2a\u90e8\u5206\u6784\u6210\u3002
&lt;template&gt;\uff1a\u5fc5\u987b\u7684\uff0c\u4f7f\u7528 HTML \u8bed\u6cd5\u63cf\u8ff0\u9875\u9762\u7ed3\u6784\uff0c\u5185\u5bb9\u7531\u591a\u4e2a\u6807\u7b7e\u7ec4\u6210\uff0c\u4e0d\u540c\u7684\u6807\u7b7e\u4ee3\u8868\u4e0d\u540c\u7684\u7ec4\u4ef6\u3002
@@ -62,7 +19,7 @@
&lt;template&gt;\uff1a\u5fc5\u987b\u7684\uff0c\u4f7f\u7528 HTML \u8bed\u6cd5\u63cf\u8ff0\u9875\u9762\u7ed3\u6784\uff0c\u5185\u5bb9\u7531\u591a\u4e2a\u6807\u7b7e\u7ec4\u6210\uff0c\u4e0d\u540c\u7684\u6807\u7b7e\u4ee3\u8868\u4e0d\u540c\u7684\u7ec4\u4ef6\u3002
&lt;style&gt;\uff1a\u53ef\u9009\u7684\uff0c\u4f7f\u7528 CSS \u8bed\u6cd5\u63cf\u8ff0\u9875\u9762\u7684\u5177\u4f53\u5c55\u73b0\u5f62\u5f0f\u3002
&lt;script&gt;\uff1a\u53ef\u9009\u7684\uff0c\u4f7f\u7528 JavaScri">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u8bed\u6cd5\u4ecb\u7ecd">
<meta name="twitter:description" content="\u8bed\u6cd5\u7efc\u8ff0Weex \u4ee3\u7801\u7531 &lt;template&gt;\u3001&lt;style&gt;\u3001&lt;script&gt; \u4e09\u4e2a\u90e8\u5206\u6784\u6210\u3002
@@ -127,13 +84,29 @@
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/guide/syntax/index.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/guide/syntax/index.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -150,7 +123,7 @@
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -525,7 +498,7 @@
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u8bed\u6cd5\u7efc\u8ff0"><a href="#\u8bed\u6cd5\u7efc\u8ff0" class="headerlink" title="\u8bed\u6cd5\u7efc\u8ff0"></a>\u8bed\u6cd5\u7efc\u8ff0</h1><p>Weex \u4ee3\u7801\u7531 <code><template></code>\u3001<code><style></code>\u3001<code><script></code> \u4e09\u4e2a\u90e8\u5206\u6784\u6210\u3002</p>
<ul>
@@ -586,7 +559,7 @@
<a href="/v-0.10/guide/syntax/index.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/guide/syntax/index.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/guide/syntax/index.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/guide/syntax/render-logic.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/render-logic.html b/content/cn/v-0.10/guide/syntax/render-logic.html
index c0ff45d..c3d47cd 100644
--- a/content/cn/v-0.10/guide/syntax/render-logic.html
+++ b/content/cn/v-0.10/guide/syntax/render-logic.html
@@ -5,49 +5,6 @@
<title>\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236 | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236appendappend \u7279\u6027\u5b9a\u4e49\u4e86\u5f53\u524d\u7ec4\u4ef6\u7684\u5b50\u7ec4\u4ef6\uff1a
\u4ee5\u4e00\u6574\u68f5\u6811\u7684\u65b9\u5f0f\u4e00\u6b21\u6027\u6dfb\u52a0\u5230\u89c6\u56fe\u4e2d (append=&quot;tree&quot;)\uff0c\u8fd8\u662f
@@ -64,7 +21,7 @@
\u6bcf\u4e2a\u5b50\u7ec4\u4ef6\u90fd\u4ea7\u751f\u4e00\u6b21\u5355\u72ec\u7684\u6dfb\u52a0\u5230\u89c6\u56fe\u7684\u6307\u4ee4 (append=&quot;node&quot;)
&lt;template&gt; &lt;div&gt; &lt;div&gt; &lt;text&gt;Hello&l">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236">
<meta name="twitter:description" content="\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236appendappend \u7279\u6027\u5b9a\u4e49\u4e86\u5f53\u524d\u7ec4\u4ef6\u7684\u5b50\u7ec4\u4ef6\uff1a
@@ -130,13 +87,29 @@
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/guide/syntax/render-logic.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/guide/syntax/render-logic.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -153,7 +126,7 @@
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -528,7 +501,7 @@
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236"><a href="#\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236" class="headerlink" title="\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236"></a>\u6e32\u67d3\u8fc7\u7a0b\u63a7\u5236</h1><h2 id="append"><a href="#append" class="headerlink" title="append"></a><code>append</code></h2><p><code>append</code> \u7279\u6027\u5b9a\u4e49\u4e86\u5f53\u524d\u7ec4\u4ef6\u7684\u5b50\u7ec4\u4ef6\uff1a</p>
<ol>
@@ -562,7 +535,7 @@
<a href="/v-0.10/guide/syntax/render-logic.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/guide/syntax/render-logic.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/guide/syntax/render-logic.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/guide/syntax/style-n-class.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/guide/syntax/style-n-class.html b/content/cn/v-0.10/guide/syntax/style-n-class.html
index 0ac8770..1f97508 100644
--- a/content/cn/v-0.10/guide/syntax/style-n-class.html
+++ b/content/cn/v-0.10/guide/syntax/style-n-class.html
@@ -5,49 +5,6 @@
<title>CSS \u6837\u5f0f\u548c\u7c7b | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="CSS \u6837\u5f0f\u548c\u7c7b\u57fa\u7840\u8bed\u6cd5CSS \u6837\u5f0f\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u7cfb\u5217\u7684\u952e\u503c\u5bf9\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u5bf9\u63cf\u8ff0\u4e86\u4e00\u4e2a\u7279\u5b9a\u7684\u6837\u5f0f\uff0c\u4f8b\u5982\u7ec4\u4ef6\u7684\u5bbd\u6216\u8005\u9ad8\u3002
.div &#123; width: 400; height: 50;&#125;
\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u662f prop-name: prop-value;\u3002\u952e\u540d\u662f prop-name\uff0c\u952e\u503c\u662f prop-value\u3002 \u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u952e\u540d\u6309\u7167\u8fde\u63a5\u7b26\u7684\u65b9\u5f0f\u8fdb\u884c\u547d\u540d\uff0c\u952e\u548c\u503c\u4e4b\u95f4\u7531\u5192\u53f7 : \u8fdb\u884c\u5206">
@@ -58,7 +15,7 @@
<meta property="og:description" content="CSS \u6837\u5f0f\u548c\u7c7b\u57fa\u7840\u8bed\u6cd5CSS \u6837\u5f0f\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u7cfb\u5217\u7684\u952e\u503c\u5bf9\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u5bf9\u63cf\u8ff0\u4e86\u4e00\u4e2a\u7279\u5b9a\u7684\u6837\u5f0f\uff0c\u4f8b\u5982\u7ec4\u4ef6\u7684\u5bbd\u6216\u8005\u9ad8\u3002
.div &#123; width: 400; height: 50;&#125;
\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u662f prop-name: prop-value;\u3002\u952e\u540d\u662f prop-name\uff0c\u952e\u503c\u662f prop-value\u3002 \u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u952e\u540d\u6309\u7167\u8fde\u63a5\u7b26\u7684\u65b9\u5f0f\u8fdb\u884c\u547d\u540d\uff0c\u952e\u548c\u503c\u4e4b\u95f4\u7531\u5192\u53f7 : \u8fdb\u884c\u5206">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="CSS \u6837\u5f0f\u548c\u7c7b">
<meta name="twitter:description" content="CSS \u6837\u5f0f\u548c\u7c7b\u57fa\u7840\u8bed\u6cd5CSS \u6837\u5f0f\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u7cfb\u5217\u7684\u952e\u503c\u5bf9\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u5bf9\u63cf\u8ff0\u4e86\u4e00\u4e2a\u7279\u5b9a\u7684\u6837\u5f0f\uff0c\u4f8b\u5982\u7ec4\u4ef6\u7684\u5bbd\u6216\u8005\u9ad8\u3002
@@ -121,13 +78,29 @@
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/guide/syntax/style-n-class.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/guide/syntax/style-n-class.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -144,7 +117,7 @@
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -519,7 +492,7 @@
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="CSS-\u6837\u5f0f\u548c\u7c7b"><a href="#CSS-\u6837\u5f0f\u548c\u7c7b" class="headerlink" title="CSS \u6837\u5f0f\u548c\u7c7b"></a>CSS \u6837\u5f0f\u548c\u7c7b</h1><h2 id="\u57fa\u7840\u8bed\u6cd5"><a href="#\u57fa\u7840\u8bed\u6cd5" class="headerlink" title="\u57fa\u7840\u8bed\u6cd5"></a>\u57fa\u7840\u8bed\u6cd5</h2><p>CSS \u6837\u5f0f\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u7cfb\u5217\u7684\u952e\u503c\u5bf9\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u5bf9\u63cf\u8ff0\u4e86\u4e00\u4e2a\u7279\u5b9a\u7684\u6837\u5f0f\uff0c\u4f8b\u5982\u7ec4\u4ef6\u7684\u5bbd\u6216\u8005\u9ad8\u3002</p>
<figure class="highlight css"><table><tr><td class="code"><pre><div class="line"><span class="selector-class">.div</span> {</div><div class="line"> <span class="attribute">width</span>: <span class="number">400</span>; </div><div class="line"> <span class="attribute">height</span>: <span class="number">50</span>;</div><div class="line">}</div></pre></td></tr></table></figure>
@@ -573,7 +546,7 @@
<a href="/v-0.10/guide/syntax/style-n-class.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/guide/syntax/style-n-class.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/guide/syntax/style-n-class.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/index.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/index.html b/content/cn/v-0.10/index.html
index cfa31a7..1a14da7 100644
--- a/content/cn/v-0.10/index.html
+++ b/content/cn/v-0.10/index.html
@@ -5,54 +5,11 @@
<title>Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta property="og:type" content="website">
<meta property="og:title" content="Weex">
<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/index.html">
<meta property="og:site_name" content="Weex">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Weex">
@@ -112,13 +69,29 @@
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/index.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/index.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -137,7 +110,7 @@
<li>
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -155,7 +128,7 @@
</a>
</li>
<li>
- <a href="/cn/faq">
+ <a href="/cn/faq.html">
FAQ
</a>
</li>
@@ -190,7 +163,34 @@
<a class="btn-close-sidebar iconfont icon-close"></a>
</div>
</div>
- <div class="scene header" style="background: #00BDFF;">
+ <script>
+ ;(function(){
+ var currentOrigin = location.origin || 'https://weex-project.io',
+ currentPathname = location.pathname,
+ currentLang = navigator.language || navigator.browserLanguage || 'en',
+ selectedLang = '';
+
+ if (window.localStorage) {
+ selectedLang = window.localStorage.getItem('lang')
+ currentLang = selectedLang ? selectedLang : currentLang
+ }
+
+ if (/zh|cn/i.test(currentLang)) { // Chinese
+ if (currentPathname.indexOf('/cn/') != 0) {
+ location.href = currentOrigin + '/cn/'
+ }
+ } else if (/en/i.test(currentLang)) { // English
+ if (!/^\/$|^\/index/.test(currentPathname)) {
+ location.href = currentOrigin
+ }
+ } else { // Other
+ if (!/^\/$|^\/index/.test(currentPathname)) {
+ location.href = currentOrigin
+ }
+ }
+ })();
+</script>
+<div class="scene header" style="background: #00BDFF;">
<div class="scene-container">
<div class="galaxy left">
<canvas width="560" height="560" id="left-canvas"></canvas>
@@ -414,7 +414,7 @@ var swiper = new Swiper('.swiper-container', {
loop: false,
autoplay: false,
autoplayDisableOnInteraction: false
-})
+});
</script>
@@ -433,7 +433,7 @@ var swiper = new Swiper('.swiper-container', {
<a href="/v-0.10/index.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/index.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/index.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/api.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/api.html b/content/cn/v-0.10/references/api.html
index 83cb0fa..7b91d24 100644
--- a/content/cn/v-0.10/references/api.html
+++ b/content/cn/v-0.10/references/api.html
@@ -5,49 +5,6 @@
<title>ViewModel APIs | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u63a5\u53e3\u4f60\u53ef\u4ee5\u5728\u7ec4\u4ef6\u7684\u65b9\u6cd5\u4e2d\u901a\u8fc7 this \uff08Vm\uff09\u4e0a\u4e0b\u6587\u8bbf\u95ee\u8fd9\u4e9b API\u3002
\u4f8b\u5b50\uff1a
&lt;script&gt;module.exports = &#123; methods: &#123; somemethod: function() &#123; this.$vm('someId'); &#125; &#125;&#125;&lt;/script&gt;
@@ -60,7 +17,7 @@ $(id)\u4e0d\u5efa">
\u4f8b\u5b50\uff1a
&lt;script&gt;module.exports = &#123; methods: &#123; somemethod: function() &#123; this.$vm('someId'); &#125; &#125;&#125;&lt;/script&gt;
$(id)\u4e0d\u5efa">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ViewModel APIs">
<meta name="twitter:description" content="\u63a5\u53e3\u4f60\u53ef\u4ee5\u5728\u7ec4\u4ef6\u7684\u65b9\u6cd5\u4e2d\u901a\u8fc7 this \uff08Vm\uff09\u4e0a\u4e0b\u6587\u8bbf\u95ee\u8fd9\u4e9b API\u3002
@@ -124,13 +81,29 @@ $(id)\u4e0d\u5efa">
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/api.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/api.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -147,7 +120,7 @@ $(id)\u4e0d\u5efa">
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -448,11 +421,11 @@ $(id)\u4e0d\u5efa">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -484,11 +457,11 @@ $(id)\u4e0d\u5efa">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -904,11 +877,11 @@ $(id)\u4e0d\u5efa">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -940,11 +913,11 @@ $(id)\u4e0d\u5efa">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1072,7 +1045,7 @@ $(id)\u4e0d\u5efa">
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u63a5\u53e3"><a href="#\u63a5\u53e3" class="headerlink" title="\u63a5\u53e3"></a>\u63a5\u53e3</h1><p>\u4f60\u53ef\u4ee5\u5728\u7ec4\u4ef6\u7684\u65b9\u6cd5\u4e2d\u901a\u8fc7 <code>this</code> \uff08Vm\uff09\u4e0a\u4e0b\u6587\u8bbf\u95ee\u8fd9\u4e9b API\u3002</p>
<p>\u4f8b\u5b50\uff1a</p>
@@ -1131,7 +1104,7 @@ $(id)\u4e0d\u5efa">
<a href="/v-0.10/references/api.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/api.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/api.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/cheatsheet.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/cheatsheet.html b/content/cn/v-0.10/references/cheatsheet.html
index 681d4fe..cd8d163 100644
--- a/content/cn/v-0.10/references/cheatsheet.html
+++ b/content/cn/v-0.10/references/cheatsheet.html
@@ -5,49 +5,6 @@
<title>Weex \u5feb\u67e5\u624b\u518c | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="Weex \u5907\u5fd8\u5f55Native \u7ec4\u4ef6
code {
word-break: break-all;
@@ -112,7 +69,7 @@ clickappeardisappear
&lt;text&gt;
value
box m">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Weex \u5feb\u67e5\u624b\u518c">
<meta name="twitter:description" content="Weex \u5907\u5fd8\u5f55Native \u7ec4\u4ef6
@@ -202,13 +159,29 @@ box m">
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/cheatsheet.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/cheatsheet.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -225,7 +198,7 @@ box m">
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -526,11 +499,11 @@ box m">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -562,11 +535,11 @@ box m">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -982,11 +955,11 @@ box m">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -1018,11 +991,11 @@ box m">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1150,7 +1123,7 @@ box m">
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="Weex-\u5907\u5fd8\u5f55"><a href="#Weex-\u5907\u5fd8\u5f55" class="headerlink" title="Weex \u5907\u5fd8\u5f55"></a>Weex \u5907\u5fd8\u5f55</h1><h2 id="Native-\u7ec4\u4ef6"><a href="#Native-\u7ec4\u4ef6" class="headerlink" title="Native \u7ec4\u4ef6"></a>Native \u7ec4\u4ef6</h2><style>
code {
@@ -1387,7 +1360,7 @@ code {
<a href="/v-0.10/references/cheatsheet.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/cheatsheet.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/cheatsheet.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/color-names.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/color-names.html b/content/cn/v-0.10/references/color-names.html
index 9137073..10f06e1 100644
--- a/content/cn/v-0.10/references/color-names.html
+++ b/content/cn/v-0.10/references/color-names.html
@@ -5,49 +5,6 @@
<title>\u989c\u8272\u540d\u79f0\u5217\u8868 | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="Weex \u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd:
@@ -136,7 +93,7 @@ fuchsia(\u665a\u6a31)
g">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u989c\u8272\u540d\u79f0\u5217\u8868">
<meta name="twitter:description" content="Weex \u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd:
@@ -238,13 +195,29 @@ g">
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/color-names.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/color-names.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -261,7 +234,7 @@ g">
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -562,11 +535,11 @@ g">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -598,11 +571,11 @@ g">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1018,11 +991,11 @@ g">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -1054,11 +1027,11 @@ g">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1186,7 +1159,7 @@ g">
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="Weex-\u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0"><a href="#Weex-\u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0" class="headerlink" title="Weex \u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0"></a>Weex \u652f\u6301\u7684\u6240\u6709\u989c\u8272\u540d\u79f0</h1><h3 id="\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd"><a href="#\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd" class="headerlink" title="\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd:"></a>\u57fa\u7840\u989c\u8272\u5173\u952e\u8bcd:</h3><table>
<thead>
@@ -1881,7 +1854,7 @@ g">
<a href="/v-0.10/references/color-names.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/color-names.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/color-names.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/common-attrs.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/common-attrs.html b/content/cn/v-0.10/references/common-attrs.html
index 7cc6d1d..2d55283 100644
--- a/content/cn/v-0.10/references/common-attrs.html
+++ b/content/cn/v-0.10/references/common-attrs.html
@@ -5,49 +5,6 @@
<title>\u901a\u7528\u7279\u6027 | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u901a\u7528\u7279\u6027\u7279\u6027\uff08attribute\uff09\u4e0e HTML \u4e2d\u5143\u7d20\u7279\u6027\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86\u4e0e Weex \u5143\u7d20\u6709\u5173\u7684\u5176\u4ed6\u9644\u52a0\u4fe1\u606f\u3002\u6240\u6709\u7684\u5143\u7d20\u90fd\u53ef\u4ee5\u62e5\u6709\u7279\u6027, \u7279\u6027\u603b\u662f\u5728 Weex \u5143\u7d20\u7684\u8d77\u59cb\u6807\u7b7e\u4e2d\u5b9a\u4e49\uff0c\u5e76\u603b\u662f\u4ee5\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u51fa\u73b0\uff0c\u4f8b\u5982\uff1aname=&quot;value&quot;\u3002\u53ef\u4ee5\u4f7f\u7528 Mustache \u5bf9\u7279\u6027\u503c\u8fdb\u884c\u6570\u636e\u7ed1\u5b9a\u3002
Notes!
Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
@@ -58,7 +15,7 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<meta property="og:description" content="\u901a\u7528\u7279\u6027\u7279\u6027\uff08attribute\uff09\u4e0e HTML \u4e2d\u5143\u7d20\u7279\u6027\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86\u4e0e Weex \u5143\u7d20\u6709\u5173\u7684\u5176\u4ed6\u9644\u52a0\u4fe1\u606f\u3002\u6240\u6709\u7684\u5143\u7d20\u90fd\u53ef\u4ee5\u62e5\u6709\u7279\u6027, \u7279\u6027\u603b\u662f\u5728 Weex \u5143\u7d20\u7684\u8d77\u59cb\u6807\u7b7e\u4e2d\u5b9a\u4e49\uff0c\u5e76\u603b\u662f\u4ee5\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u51fa\u73b0\uff0c\u4f8b\u5982\uff1aname=&quot;value&quot;\u3002\u53ef\u4ee5\u4f7f\u7528 Mustache \u5bf9\u7279\u6027\u503c\u8fdb\u884c\u6570\u636e\u7ed1\u5b9a\u3002
Notes!
Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u901a\u7528\u7279\u6027">
<meta name="twitter:description" content="\u901a\u7528\u7279\u6027\u7279\u6027\uff08attribute\uff09\u4e0e HTML \u4e2d\u5143\u7d20\u7279\u6027\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86\u4e0e Weex \u5143\u7d20\u6709\u5173\u7684\u5176\u4ed6\u9644\u52a0\u4fe1\u606f\u3002\u6240\u6709\u7684\u5143\u7d20\u90fd\u53ef\u4ee5\u62e5\u6709\u7279\u6027, \u7279\u6027\u603b\u662f\u5728 Weex \u5143\u7d20\u7684\u8d77\u59cb\u6807\u7b7e\u4e2d\u5b9a\u4e49\uff0c\u5e76\u603b\u662f\u4ee5\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u51fa\u73b0\uff0c\u4f8b\u5982\uff1aname=&quot;value&quot;\u3002\u53ef\u4ee5\u4f7f\u7528 Mustache \u5bf9\u7279\u6027\u503c\u8fdb\u884c\u6570\u636e\u7ed1\u5b9a\u3002
@@ -121,13 +78,29 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/common-attrs.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/common-attrs.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -144,7 +117,7 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -445,11 +418,11 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -481,11 +454,11 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -901,11 +874,11 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -937,11 +910,11 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1069,7 +1042,7 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u901a\u7528\u7279\u6027"><a href="#\u901a\u7528\u7279\u6027" class="headerlink" title="\u901a\u7528\u7279\u6027"></a>\u901a\u7528\u7279\u6027</h1><p>\u7279\u6027\uff08attribute\uff09\u4e0e HTML \u4e2d\u5143\u7d20\u7279\u6027\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86\u4e0e Weex \u5143\u7d20\u6709\u5173\u7684\u5176\u4ed6\u9644\u52a0\u4fe1\u606f\u3002\u6240\u6709\u7684\u5143\u7d20\u90fd\u53ef\u4ee5\u62e5\u6709\u7279\u6027, \u7279\u6027\u603b\u662f\u5728 Weex \u5143\u7d20\u7684\u8d77\u59cb\u6807\u7b7e\u4e2d\u5b9a\u4e49\uff0c\u5e76\u603b\u662f\u4ee5\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u51fa\u73b0\uff0c\u4f8b\u5982\uff1a<code>name="value"</code>\u3002\u53ef\u4ee5\u4f7f\u7528 <a href="https://mustache.github.io/" target="_blank" rel="external">Mustache</a> \u5bf9\u7279\u6027\u503c\u8fdb\u884c\u6570\u636e\u7ed1\u5b9a\u3002</p>
<p><strong>Notes!</strong></p>
@@ -1118,7 +1091,7 @@ Weex \u9075\u5faa HTML attribute \u547d\u540d\u89c4\u8303, \u6240\u4ee5\u8bf7 \u4e0d\u8981\u5728\u7279\u6027">
<a href="/v-0.10/references/common-attrs.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/common-attrs.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/common-attrs.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/common-event.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/common-event.html b/content/cn/v-0.10/references/common-event.html
index a107689..7836765 100644
--- a/content/cn/v-0.10/references/common-event.html
+++ b/content/cn/v-0.10/references/common-event.html
@@ -5,49 +5,6 @@
<title>\u901a\u7528\u4e8b\u4ef6 | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u901a\u7528\u4e8b\u4ef6Weex \u63d0\u4f9b\u4e86\u901a\u8fc7\u4e8b\u4ef6\u89e6\u53d1\u52a8\u4f5c\u7684\u80fd\u529b\uff0c\u4f8b\u5982\u5728\u7528\u6237\u70b9\u51fb\u7ec4\u4ef6\u65f6\u6267\u884c JavaScript\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u53ef\u88ab\u6dfb\u52a0\u5230 Weex \u7ec4\u4ef6\u4e0a\u4ee5\u5b9a\u4e49\u4e8b\u4ef6\u52a8\u4f5c\u7684\u5c5e\u6027\uff1a
click\u5f53\u7ec4\u4ef6\u4e0a\u53d1\u751f\u70b9\u51fb\u624b\u52bf\u65f6\u88ab\u89e6\u53d1\u3002
\u6ce8\u610f\uff1a
@@ -66,7 +23,7 @@ click\u5f53\u7ec4\u4ef6\u4e0a\u53d1\u751f\u70b9\u51fb\u624b\u52bf\u65f6\u88ab\u89e6\u53d1\u3002
\u4e8b\u4ef6\u5bf9\u8c61
type: click
targe">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u901a\u7528\u4e8b\u4ef6">
<meta name="twitter:description" content="\u901a\u7528\u4e8b\u4ef6Weex \u63d0\u4f9b\u4e86\u901a\u8fc7\u4e8b\u4ef6\u89e6\u53d1\u52a8\u4f5c\u7684\u80fd\u529b\uff0c\u4f8b\u5982\u5728\u7528\u6237\u70b9\u51fb\u7ec4\u4ef6\u65f6\u6267\u884c JavaScript\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u53ef\u88ab\u6dfb\u52a0\u5230 Weex \u7ec4\u4ef6\u4e0a\u4ee5\u5b9a\u4e49\u4e8b\u4ef6\u52a8\u4f5c\u7684\u5c5e\u6027\uff1a
@@ -133,13 +90,29 @@ targe">
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/common-event.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/common-event.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -156,7 +129,7 @@ targe">
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -457,11 +430,11 @@ targe">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -493,11 +466,11 @@ targe">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -913,11 +886,11 @@ targe">
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -949,11 +922,11 @@ targe">
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1081,7 +1054,7 @@ targe">
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u901a\u7528\u4e8b\u4ef6"><a href="#\u901a\u7528\u4e8b\u4ef6" class="headerlink" title="\u901a\u7528\u4e8b\u4ef6"></a>\u901a\u7528\u4e8b\u4ef6</h1><p>Weex \u63d0\u4f9b\u4e86\u901a\u8fc7\u4e8b\u4ef6\u89e6\u53d1\u52a8\u4f5c\u7684\u80fd\u529b\uff0c\u4f8b\u5982\u5728\u7528\u6237\u70b9\u51fb\u7ec4\u4ef6\u65f6\u6267\u884c JavaScript\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u53ef\u88ab\u6dfb\u52a0\u5230 Weex \u7ec4\u4ef6\u4e0a\u4ee5\u5b9a\u4e49\u4e8b\u4ef6\u52a8\u4f5c\u7684\u5c5e\u6027\uff1a</p>
<h2 id="click"><a href="#click" class="headerlink" title="click"></a><code>click</code></h2><p>\u5f53\u7ec4\u4ef6\u4e0a\u53d1\u751f\u70b9\u51fb\u624b\u52bf\u65f6\u88ab\u89e6\u53d1\u3002</p>
@@ -1160,7 +1133,7 @@ targe">
<a href="/v-0.10/references/common-event.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/common-event.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/common-event.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/common-style.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/common-style.html b/content/cn/v-0.10/references/common-style.html
index 9cbee59..f7f4464 100644
--- a/content/cn/v-0.10/references/common-style.html
+++ b/content/cn/v-0.10/references/common-style.html
@@ -5,49 +5,6 @@
<title>\u901a\u7528\u6837\u5f0f | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u901a\u7528\u6837\u5f0f\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002
\u76d2\u6a21\u578b
Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50\u3002\u6211\u4eec\u4e00\u822c\u5728\u8ba8\u8bba\u8bbe\u8ba1\u6216\u5e03\u5c40\u65f6\uff0c\u4f1a\u63d0\u5230\u300c\u76d2\u6a21\u578b\u300d\u8fd9\u4e2a\u6982\u5ff5\u3002
@@ -65,7 +22,7 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<meta property="og:image" content="http://alibaba.github.io/weex/doc/images/css-flexbox-align.jpg">
<meta property="og:image" content="https://weex.apache.org/images/style_1.jpg">
<meta property="og:image" content="https://weex.apache.org/images/style_2.jpg">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="\u901a\u7528\u6837\u5f0f">
<meta name="twitter:description" content="\u901a\u7528\u6837\u5f0f\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002
@@ -130,13 +87,29 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/common-style.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/common-style.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -153,7 +126,7 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -454,11 +427,11 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -490,11 +463,11 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -910,11 +883,11 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -946,11 +919,11 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1078,7 +1051,7 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u901a\u7528\u6837\u5f0f"><a href="#\u901a\u7528\u6837\u5f0f" class="headerlink" title="\u901a\u7528\u6837\u5f0f"></a>\u901a\u7528\u6837\u5f0f</h1><p>\u6240\u6709 Weex \u7ec4\u4ef6\u90fd\u652f\u6301\u4ee5\u4e0b\u901a\u7528\u6837\u5f0f\u89c4\u5219\u3002</p>
<h2 id="\u76d2\u6a21\u578b"><a href="#\u76d2\u6a21\u578b" class="headerlink" title="\u76d2\u6a21\u578b"></a>\u76d2\u6a21\u578b</h2><p><img src="http://alibaba.github.io/weex/doc/images/css-boxmodel.png" alt="box model @300*"></p>
@@ -1263,7 +1236,7 @@ Weex \u76d2\u6a21\u578b\u57fa\u4e8e CSS \u76d2\u6a21\u578b\uff0c\u6bcf\u4e2a Weex \u5143\u7d20\u90fd\u53ef\u89c6\u4f5c\u4e00\u4e2a\u76d2\u5b50
<a href="/v-0.10/references/common-style.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/common-style.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/common-style.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/22906b6f/content/cn/v-0.10/references/component-defs.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/references/component-defs.html b/content/cn/v-0.10/references/component-defs.html
index b6cb28f..60d3469 100644
--- a/content/cn/v-0.10/references/component-defs.html
+++ b/content/cn/v-0.10/references/component-defs.html
@@ -5,49 +5,6 @@
<title>ViewModel \u9009\u9879 | Weex</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <script>
- ;(function(){
- var currentOrigin = location.origin,
- currentPathname = location.pathname,
- currentLang = navigator.language,
- selectedLang = '';
-
- if (!currentLang) {
- currentLang = navigator.browserLanguage;
- }
-
- if (window.sessionStorage) {
- selectedLang = window.sessionStorage.getItem('lang')
- }
-
- if (!selectedLang) {
- if (currentLang.indexOf('zh') >= 0 && currentPathname.indexOf('/cn/') != 0) {
- location.href = getUrl('cn', currentOrigin, currentPathname);
- } else if (currentLang.indexOf('en') >= 0 && currentPathname.indexOf('/cn/') == 0) {
- location.href = getUrl('en', currentOrigin, currentPathname);
- }
- }
-
- function getUrl (lang, origin, path) {
- if (lang == 'en') {
- if (path.indexOf('/cn/') == 0) {
- return origin + path.substr(3)
- } else {
- return origin + path
- }
- } else {
- var langPath = '/' + lang + '/'
- var pathStart = path.indexOf(langPath)
-
- if (pathStart == 0) {
- return origin + path
- } else {
- return origin + langPath + path.substr(1)
- }
- }
- }
- })();
- </script>
<meta name="description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &lt;script&gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
module.exports = &#123; // a set of options here&#125;
\u6570\u636e\u548c\u65b9\u6cd5module.exports = &#123; data: function () &#123; return &#123;x:">
@@ -58,7 +15,7 @@ module.exports = &#123; // a set of options here&#125;
<meta property="og:description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &lt;script&gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
module.exports = &#123; // a set of options here&#125;
\u6570\u636e\u548c\u65b9\u6cd5module.exports = &#123; data: function () &#123; return &#123;x:">
-<meta property="og:updated_time" content="2017-02-17T02:09:41.000Z">
+<meta property="og:updated_time" content="2017-03-01T06:05:27.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ViewModel \u9009\u9879">
<meta name="twitter:description" content="\u7ec4\u4ef6\u5b9a\u4e49\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 &lt;script&gt; \u6807\u7b7e\u4e2d\u7684 module.exports \u3002
@@ -121,13 +78,29 @@ module.exports = &#123; // a set of options here&#125;
<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"/>
+ <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
</div>
</div>
</li>
+ <li>
+ <div class="dropdown select-lang">
+ <a href="javascript:;" class="dropdown-toggle">
+ Language
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu pick-lang">
+ <li>
+ <a href="/v-0.10/references/component-defs.html" data-lang="en">English</a>
+ </li>
+ <li>
+ <a href="/cn/v-0.10/references/component-defs.html" data-lang="zh-cn">\u4e2d\u6587</a>
+ </li>
+ </ul>
+ </div>
+ </li>
<!--<li></li>-->
</ul>
</div>
@@ -144,7 +117,7 @@ module.exports = &#123; // a set of options here&#125;
<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"/>
+ <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/>
<span class="iconfont icon-search"></span>
</form>
<div class="results-panel">
@@ -445,11 +418,11 @@ module.exports = &#123; // a set of options here&#125;
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -481,11 +454,11 @@ module.exports = &#123; // a set of options here&#125;
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -901,11 +874,11 @@ module.exports = &#123; // a set of options here&#125;
<ul class="chapter">
<li>
- <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/a.html" class="sidebar-link "><a></a>
+ <a href="/cn/v-0.10/references/components/indicator.html" class="sidebar-link "><indicator></a>
</li>
<li>
@@ -937,11 +910,11 @@ module.exports = &#123; // a set of options here&#125;
</li>
<li>
- <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
+ <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
</li>
<li>
- <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link "><input></a>
+ <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a>
</li>
<li>
@@ -1069,7 +1042,7 @@ module.exports = &#123; // a set of options here&#125;
</h1>
- <time class="article-date" datetime="2017-02-17T02:09:41.000Z">Updated time: 17/02/2017</time>
+ <time class="article-date" datetime="2017-03-01T06:05:27.000Z">Updated time: 01/03/2017</time>
</header>
<h1 id="\u7ec4\u4ef6\u5b9a\u4e49"><a href="#\u7ec4\u4ef6\u5b9a\u4e49" class="headerlink" title="\u7ec4\u4ef6\u5b9a\u4e49"></a>\u7ec4\u4ef6\u5b9a\u4e49</h1><p>\u5b9a\u4e49\u7ec4\u4ef6\u662f\u901a\u8fc7\u4e00\u7ec4\u9009\u9879\u6765\u63cf\u8ff0\u4e00\u4e2a\u7ec4\u4ef6\u3002\u8fd9\u7ec4\u9009\u9879\u603b\u662f\u88ab\u8d4b\u503c\u7ed9 <code><script></code> \u6807\u7b7e\u4e2d\u7684 <code>module.exports</code> \u3002</p>
<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="built_in">module</span>.exports = {</div><div class="line"> <span class="comment">// a set of options here</span></div><div class="line">}</div></pre></td></tr></table></figure>
@@ -1111,7 +1084,7 @@ module.exports = &#123; // a set of options here&#125;
<a href="/v-0.10/references/component-defs.html" data-lang="en">English</a>
</li>
<li>
- <a href="/cn/v-0.10/references/component-defs.html" data-lang="cn">\u4e2d\u6587</a>
+ <a href="/cn/v-0.10/references/component-defs.html" data-lang="zh-cn">\u4e2d\u6587</a>
</li>
</ul>
</div>