http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/modules/stream.html ---------------------------------------------------------------------- diff --git a/content/cn/references/modules/stream.html b/content/cn/references/modules/stream.html index 3e68648..9e97a98 100644 --- a/content/cn/references/modules/stream.html +++ b/content/cn/references/modules/stream.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/modules/websocket.html ---------------------------------------------------------------------- diff --git a/content/cn/references/modules/websocket.html b/content/cn/references/modules/websocket.html index c29056c..89ad78e 100644 --- a/content/cn/references/modules/websocket.html +++ b/content/cn/references/modules/websocket.html @@ -11,7 +11,7 @@ <meta property="og:url" content="https://weex.apache.org/cn/references/modules/websocket.html"> <meta property="og:site_name" content="Weex"> <meta property="og:description" content="WebSocketSummaryWebSockets æ¯ä¸ç§å è¿çææ¯, è¿ä½¿å¾å¨ç¨æ·ç H5/iOS/Android åä¸ä¸ªæå¡å¨ä¹é´æå¼ä¸ä¸ªç交äºå¼éä¿¡ä¼è¯æ为å¯è½, æäºè¿ä¸ª APIï¼ä½ å¯ä»¥åæå¡å¨åéæ¶æ¯, 并æ¥æ¶äºä»¶é©±å¨çååº, æ é轮询æå¡å¨çååº æ³¨æï¼ iOSåh5æä¾ WebSockets ç protocol é»è®¤å®ç°ï¼å®å使ç¨éè¦æä¾èªå®ä¹ adapter å®ç°ï¼source"> -<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z"> +<meta property="og:updated_time" content="2017-05-17T09:02:52.000Z"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="WebSocket"> <meta name="twitter:description" content="WebSocketSummaryWebSockets æ¯ä¸ç§å è¿çææ¯, è¿ä½¿å¾å¨ç¨æ·ç H5/iOS/Android åä¸ä¸ªæå¡å¨ä¹é´æå¼ä¸ä¸ªç交äºå¼éä¿¡ä¼è¯æ为å¯è½, æäºè¿ä¸ª APIï¼ä½ å¯ä»¥åæå¡å¨åéæ¶æ¯, 并æ¥æ¶äºä»¶é©±å¨çååº, æ é轮询æå¡å¨çååº æ³¨æï¼ iOSåh5æä¾ WebSockets ç protocol é»è®¤å®ç°ï¼å®å使ç¨éè¦æä¾èªå®ä¹ adapter å®ç°ï¼source"> @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link current ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link current ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link current ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link current ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1348,7 +1348,7 @@ </h1> - <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 28/04/2017</time> + <time class="article-date" datetime="2017-05-17T09:02:52.000Z">Updated time: 17/05/2017</time> </header> <h1 id="WebSocket"><a href="#WebSocket" class="headerlink" title="WebSocket"></a>WebSocket</h1><h2 id="Summary"><a href="#Summary" class="headerlink" title="Summary"></a>Summary</h2><p>WebSockets æ¯ä¸ç§å è¿çææ¯, è¿ä½¿å¾å¨ç¨æ·ç H5/iOS/Android åä¸ä¸ªæå¡å¨ä¹é´æå¼ä¸ä¸ªç交äºå¼éä¿¡ä¼è¯æ为å¯è½, æäºè¿ä¸ª APIï¼ä½ å¯ä»¥åæå¡å¨åéæ¶æ¯, 并æ¥æ¶äºä»¶é©±å¨çååº, æ é轮询æå¡å¨çååº</p> <h2 id="注æï¼"><a href="#注æï¼" class="headerlink" title="注æï¼"></a><strong>注æï¼</strong></h2><ul> @@ -1403,8 +1403,8 @@ </ul> </li> </ul> -<h3 id="Example"><a href="#Example" class="headerlink" title="Example"></a>Example</h3><figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag"><<span class="name">template</span>></span></div><div class="line"> <span class="tag"><<span class="name">scroller</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #286090"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #FFFFFF"</span>></span>websocket<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span cl ass="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">input</span></span></div><div class="line"> <span class="attr">type</span>=<span class="string">"text"</span></div><div class="line"> <span class="attr">placeholder</span>=<span class="string">"please input message to send"</span></div><div class="line"> <span class="attr">class</span>=<span class="string">"input"</span></div><div class="line"> <span class="attr">autofocus</span>=<span class="string">"false"</span></div><div class="line"> <span class="attr">value</span>=<span class="string">""</span></div><div class="line"> <span class="attr">onchange</span>=<span class="string">"onchange"</span></div><div class="line"> <span class="attr">oninput</span>=<span class="string">"oninput"</span></div><div class="line"> <span class="attr">id</span> = <span class="string">"input"</span> </div><div class="line"> /></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"flex-direction: row; justify-content: center;"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> <span class="attr">onclick</span>=<span class="string">"{{connect}}"</span>></span>connect<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> <span class="attr">onclick</span>=<span class="string">"{{send}}"</span>></span>send<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">cl ass</span>=<span class="string">"button"</span> <span class="attr">onclick</span>=<span class="string">"{{close}}"</span>></span>close<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3;margin-top: 20"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = send<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<s pan class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height: 80"</span>></span>{{sendinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = onopen<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height : 80"</span>></span>{{onopeninfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = onmessage<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height: 100"</span>></span>{{onmessage}}<span class="tag"></<span class="name"> text</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = onclose<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height: 80"</span>></span>{{oncloseinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</sp an> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = onerror<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height: 80"</span>></span>{{onerrorinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #D3D3D3"</span>></spa n></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80 ;padding: 20;color: #000000"</span>></span>method = close<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: #000000;height: 80"</span>></span>{{closeinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"></<span class="name">scroller</span>></span></div> <div class="line"><span class="tag"></<span class="name">template</span>></span></div><div class="line"><span class="tag"><<span class="name">style</span>></span><span class="css"></span></div><div class="line"> <span class="selector-class">.input</span> {</div><div class="line"> <span class="attribute">font-size</span>: <span class="number">40</span>;</div><div class="line"> <span class="attribute">height</span>: <span class="number">80</span>;</div><div class="line"> <span class="attribute">width</span>: <span class="number">600</span>;</div><div class="line"> }</div><div class="line"> <span class="selector-class">.button</span> {</div><div class="line"> <span class="attribute">font-size</span>: <span class="number">36</span>;</div><div class="line"> <span class="attribute">width</span>: <span class="number">150</span>;</div><div class="line"> <span class="attribute">color</span>: <span class="number">#41B883</span>;</div><div class= "line"> <span class="attribute">text-align</span>: center;</div><div class="line"> <span class="attribute">padding-top</span>: <span class="number">10</span>;</div><div class="line"> <span class="attribute">padding-bottom</span>: <span class="number">10</span>;</div><div class="line"> <span class="attribute">border-width</span>: <span class="number">2</span>;</div><div class="line"> <span class="attribute">border-style</span>: solid;</div><div class="line"> <span class="attribute">margin-right</span>: <span class="number">20</span>;</div><div class="line"> <span class="attribute">border-color</span>: <span class="built_in">rgb</span>(162, 217, 192);</div><div class="line"> <span class="attribute">background-color</span>: <span class="built_in">rgba</span>(162, 217, 192, 0.2);</div><div class="line"> }</div><div class="line"><span class="tag"></<span class="name">style</span>></span></div><div class="line"><span class="tag"><<span class="name">s cript</span>></span><span class="javascript"></span></div><div class="line"> <span class="keyword">var</span> websocket = <span class="built_in">require</span>(<span class="string">'@weex-module/webSocket'</span>);</div><div class="line"> <span class="built_in">module</span>.exports = {</div><div class="line"> <span class="attr">data</span>: {</div><div class="line"> <span class="attr">connectinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">sendinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onopeninfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onmessage</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">oncloseinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onerrorinfo</span>: <span class="string">''</span>,</div><div class="line"> <span clas s="attr">closeinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">txtInput</span>:<span class="string">''</span>,</div><div class="line"> <span class="attr">navBarHeight</span>: <span class="number">88</span>,</div><div class="line"> <span class="attr">title</span>: <span class="string">'Navigator'</span>,</div><div class="line"> <span class="attr">dir</span>: <span class="string">'examples'</span>,</div><div class="line"> <span class="attr">baseURL</span>: <span class="string">''</span>,</div><div class="line"> },</div><div class="line"> <span class="attr">methods</span>: {</div><div class="line"> <span class="attr">connect</span>:<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</div><div class="line"> websocket.WebSocket(<span class="string">'ws://echo.websocket.org'</span>,<span class="string">''</span>);</div><div class="line"> < span class="keyword">var</span> self = <span class="keyword">this</span>;</div><div class="line"> self.onopeninfo = <span class="string">'connecting...'</span></div><div class="line"> websocket.onopen = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onopeninfo = <span class="string">'websocket open'</span>;</div><div class="line"> }</div><div class="line"> websocket.onmessage = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onmessage = e.data;</div><div class="line"> }</div><div class="line"> websocket.onerror = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> s elf.onerrorinfo = e.data;</div><div class="line"> }</div><div class="line"> websocket.onclose = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onopeninfo = <span class="string">''</span>;</div><div class="line"> self.onerrorinfo = e.code;</div><div class="line"> }</div><div class="line"> },</div><div class="line"> <span class="attr">send</span>:<span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</div><div class="line"> <span class="keyword">var</span> input = <span class="keyword">this</span>.$el(<span class="string">'input'</span>);</div><div class="line"> input.blur();</div><div class="line"> websocket.send(<span class="keyword">this</span>.txtInput);</div><div class="line"> <span class="keyword">this</span>.sendinfo = < span class="keyword">this</span>.txtInput;</div><div class="line"> },</div><div class="line"> <span class="attr">oninput</span>: <span class="function"><span class="keyword">function</span>(<span class="params">event</span>) </span>{</div><div class="line"> <span class="keyword">this</span>.txtInput = event.value;</div><div class="line"> },</div><div class="line"> <span class="attr">close</span>:<span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</div><div class="line"> websocket.close();</div><div class="line"> },</div><div class="line"> }</div><div class="line"> };</div><div class="line"><span class="tag"></<span class="name">script</span>></span></div></pre></td></tr></table></figure> -<p><a href="http://dotwe.org/weex/0256bbfc448f0fdbe8b10ba311c947b4" target="_blank" rel="external">Have a try</a></p> +<h3 id="Example"><a href="#Example" class="headerlink" title="Example"></a>Example</h3><figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag"><<span class="name">template</span>></span></div><div class="line"> <span class="tag"><<span class="name">scroller</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: #286090"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: white"</span>></span>websocket<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">placeholder</span>=<span class="string">"please input message to send"</span> <span class="attr">class</span>=<span class="string">"input"</span> <span class="attr">autofocus</span>=<span class="string">"false"</span> <span class="attr">value</span>=<span class="string">""</span> @<span class="attr">change</span>=<span class="string">"onchange"</span> @<span class="attr">input</span>=<span class="string">"oninput"</span> <span class="attr">ref</span>=<span class="string">"input"</span>/></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"flex-direction: row; justify-content: center;"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span c lass="attr">class</span>=<span class="string">"button"</span> @<span class="attr">click</span>=<span class="string">"connect"</span>></span>connect<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> @<span class="attr">click</span>=<span class="string">"send"</span>></span>send<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> @<span class="attr">click</span>=<span class="string">"close"</span>></span>close<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"></div><div class="line"> <span class="tag"><<span class= "name">div</span> <span class="attr">style</span>=<span class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: black"</span>></span>method = send<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 80px"</span>></span>{{sendinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<spa n class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: black"</span>></span>method = onopen<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 80px"</span>></span>{{onopeninfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: black"</span>></span>method = onmessage<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 400px"</span>></span>{{onmessage}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</sp an> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: black"</span>></span>method = onclose<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 80px"</span>></span>{{oncloseinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padding: 20px;color: black"</span>></span>method = onerror<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 80px"</span>></span>{{onerrorinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">style</span>=<span class="string">"background-color: lightgray"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"title"</span> <span class="attr">style</span>=<span class="string">"height: 80px ;padd ing: 20px;color: black"</span>></span>method = close<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">style</span>=<span class="string">"color: black;height: 80px"</span>></span>{{closeinfo}}<span class="tag"></<span class="name">text</span>></span></div><div class="line"></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"></div><div class="line"> <span class="tag"></<span class="name">scroller</span>></span></div><div class="line"><span class="tag"></<span class="name">template</span>></span></div><div class="line"></div><div class="line"><span class="tag"><<span class="name">style</span> <span class="attr">scoped</span>></span><span class="css"></span></div><div c lass="line"> <span class="selector-class">.input</span> {</div><div class="line"> <span class="attribute">font-size</span>: <span class="number">40px</span>;</div><div class="line"> <span class="attribute">height</span>: <span class="number">80px</span>;</div><div class="line"> <span class="attribute">width</span>: <span class="number">600px</span>;</div><div class="line"> }</div><div class="line"> <span class="selector-class">.button</span> {</div><div class="line"> <span class="attribute">font-size</span>: <span class="number">36px</span>;</div><div class="line"> <span class="attribute">width</span>: <span class="number">150px</span>;</div><div class="line"> <span class="attribute">color</span>: <span class="number">#41B883</span>;</div><div class="line"> <span class="attribute">text-align</span>: center;</div><div class="line"> <span class="attribute">padding-top</span>: <span class="number">25px</span>;</div><div class="line"> <span c lass="attribute">padding-bottom</span>: <span class="number">25px</span>;</div><div class="line"> <span class="attribute">border-width</span>: <span class="number">2px</span>;</div><div class="line"> <span class="attribute">border-style</span>: solid;</div><div class="line"> <span class="attribute">margin-right</span>: <span class="number">20px</span>;</div><div class="line"> <span class="attribute">border-color</span>: <span class="built_in">rgb</span>(162, 217, 192);</div><div class="line"> <span class="attribute">background-color</span>: <span class="built_in">rgba</span>(162, 217, 192, 0.2);</div><div class="line"> }</div><div class="line"><span class="tag"></<span class="name">style</span>></span></div><div class="line"></div><div class="line"></div><div class="line"><span class="tag"><<span class="name">script</span>></span><span class="javascript"></span></div><div class="line"> <span class="keyword">var</span> websocket = weex.requireModule( <span class="string">'webSocket'</span>)</div><div class="line"> <span class="keyword">export</span> <span class="keyword">default</span> {</div><div class="line"> data () {</div><div class="line"> <span class="keyword">return</span> {</div><div class="line"> <span class="attr">connectinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">sendinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onopeninfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onmessage</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">oncloseinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">onerrorinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">closeinfo</span>: <span class="string">''</span>,</div><div class="line"> <span class="attr">txtInput</span>:<span class="string">''</span>,</div><div class="line"> <span class="attr">navBarHeight</span>: <span class="number">88</span>,</div><div class="line"> <span class="attr">title</span>: <span class="string">'Navigator'</span>,</div><div class="line"> <span class="attr">dir</span>: <span class="string">'examples'</span>,</div><div class="line"> <span class="attr">baseURL</span>: <span class="string">''</span></div><div class="line"> }</div><div class="line"> },</div><div class="line"> <span class="attr">methods</span>: {</div><div class="line"> <span class="attr">connect</span>:<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>{</div><div class="line"> websocket.WebSocket(<span class="string">'ws://echo.websocket.org'</span>,<span class="string">''</span>);</div><div class="line"> <span class="keyword">var</span> self = <span class="keyword">this</span>;</div><div class="line"> self.onopeninfo = <span class="string">'connecting...'</span></div><div class="line"> websocket.onopen = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onopeninfo = <span class="string">'websocket open'</span>;</div><div class="line"> }</div><div class="line"> websocket.onmessage = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onmessage = e.data;</div><div class="line"> }</div><div class="line"> websocket.onerror = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onerrorinfo = e.data;</div><div class="li ne"> }</div><div class="line"> websocket.onclose = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>)</span></div><div class="line"> {</div><div class="line"> self.onopeninfo = <span class="string">''</span>;</div><div class="line"> self.onerrorinfo = e.code;</div><div class="line"> }</div><div class="line"> },</div><div class="line"> <span class="attr">send</span>:<span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</div><div class="line"> <span class="keyword">var</span> input = <span class="keyword">this</span>.$refs.input;</div><div class="line"> input.blur();</div><div class="line"> websocket.send(<span class="keyword">this</span>.txtInput);</div><div class="line"> <span class="keyword">this</span>.sendinfo = <span class="keyword">this</span>.txtInput;</div><div class="line"> &# 125;,</div><div class="line"> <span class="attr">oninput</span>: <span class="function"><span class="keyword">function</span>(<span class="params">event</span>) </span>{</div><div class="line"> <span class="keyword">this</span>.txtInput = event.value;</div><div class="line"> },</div><div class="line"> <span class="attr">close</span>:<span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</div><div class="line"> websocket.close();</div><div class="line"> },</div><div class="line"> },</div><div class="line"> }</div><div class="line"><span class="tag"></<span class="name">script</span>></span></div></pre></td></tr></table></figure> +<p><a href="http://dotwe.org/vue/6d8bdfe66f24fda1a2dc6158b0182573" target="_blank" rel="external">Have a try</a></p> </div> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/modules/webview.html ---------------------------------------------------------------------- diff --git a/content/cn/references/modules/webview.html b/content/cn/references/modules/webview.html index d717c90..a25da50 100644 --- a/content/cn/references/modules/webview.html +++ b/content/cn/references/modules/webview.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/native-dom-api.html ---------------------------------------------------------------------- diff --git a/content/cn/references/native-dom-api.html b/content/cn/references/native-dom-api.html index d369671..4fa00dd 100644 --- a/content/cn/references/native-dom-api.html +++ b/content/cn/references/native-dom-api.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/path.html ---------------------------------------------------------------------- diff --git a/content/cn/references/path.html b/content/cn/references/path.html index 2f54d36..f08e4b5 100644 --- a/content/cn/references/path.html +++ b/content/cn/references/path.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/platform-difference.html ---------------------------------------------------------------------- diff --git a/content/cn/references/platform-difference.html b/content/cn/references/platform-difference.html index d94fd23..9227929 100644 --- a/content/cn/references/platform-difference.html +++ b/content/cn/references/platform-difference.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/text-style.html ---------------------------------------------------------------------- diff --git a/content/cn/references/text-style.html b/content/cn/references/text-style.html index bfa46c1..910ca27 100644 --- a/content/cn/references/text-style.html +++ b/content/cn/references/text-style.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/unit.html ---------------------------------------------------------------------- diff --git a/content/cn/references/unit.html b/content/cn/references/unit.html index b23833f..fdf6bda 100644 --- a/content/cn/references/unit.html +++ b/content/cn/references/unit.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/vue/difference-of-vuex.html ---------------------------------------------------------------------- diff --git a/content/cn/references/vue/difference-of-vuex.html b/content/cn/references/vue/difference-of-vuex.html index 9a602a7..dc1f617 100644 --- a/content/cn/references/vue/difference-of-vuex.html +++ b/content/cn/references/vue/difference-of-vuex.html @@ -581,11 +581,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1190,11 +1190,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/vue/difference-with-web.html ---------------------------------------------------------------------- diff --git a/content/cn/references/vue/difference-with-web.html b/content/cn/references/vue/difference-with-web.html index 999cb78..93db8ca 100644 --- a/content/cn/references/vue/difference-with-web.html +++ b/content/cn/references/vue/difference-with-web.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/vue/index.html ---------------------------------------------------------------------- diff --git a/content/cn/references/vue/index.html b/content/cn/references/vue/index.html index ec735b5..96b5e24 100644 --- a/content/cn/references/vue/index.html +++ b/content/cn/references/vue/index.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/web-standards.html ---------------------------------------------------------------------- diff --git a/content/cn/references/web-standards.html b/content/cn/references/web-standards.html index 364edaf..cfa50a9 100644 --- a/content/cn/references/web-standards.html +++ b/content/cn/references/web-standards.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/references/weex-variable.html ---------------------------------------------------------------------- diff --git a/content/cn/references/weex-variable.html b/content/cn/references/weex-variable.html index cb477b1..282f57b 100644 --- a/content/cn/references/weex-variable.html +++ b/content/cn/references/weex-variable.html @@ -579,11 +579,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> @@ -1188,11 +1188,11 @@ </li> <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> + <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> </li> <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> + <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 44117f4..0aa6d62 100644 --- a/content/cn/v-0.10/references/api.html +++ b/content/cn/v-0.10/references/api.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 55469a7..bc34b36 100644 --- a/content/cn/v-0.10/references/cheatsheet.html +++ b/content/cn/v-0.10/references/cheatsheet.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 014862f..40cd6de 100644 --- a/content/cn/v-0.10/references/color-names.html +++ b/content/cn/v-0.10/references/color-names.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 e928703..63b51f2 100644 --- a/content/cn/v-0.10/references/common-attrs.html +++ b/content/cn/v-0.10/references/common-attrs.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 4148fac..3627993 100644 --- a/content/cn/v-0.10/references/common-event.html +++ b/content/cn/v-0.10/references/common-event.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 9137fbe..0b888d5 100644 --- a/content/cn/v-0.10/references/common-style.html +++ b/content/cn/v-0.10/references/common-style.html @@ -469,11 +469,11 @@ </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> @@ -933,11 +933,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/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 2c394d2..3c388ad 100644 --- a/content/cn/v-0.10/references/component-defs.html +++ b/content/cn/v-0.10/references/component-defs.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/a.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/a.html b/content/cn/v-0.10/references/components/a.html index fda583e..a050373 100644 --- a/content/cn/v-0.10/references/components/a.html +++ b/content/cn/v-0.10/references/components/a.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/cell.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/cell.html b/content/cn/v-0.10/references/components/cell.html index 4bc48d1..567037f 100644 --- a/content/cn/v-0.10/references/components/cell.html +++ b/content/cn/v-0.10/references/components/cell.html @@ -465,11 +465,11 @@ </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> @@ -929,11 +929,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/div.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/div.html b/content/cn/v-0.10/references/components/div.html index f3cfeb1..56c00ed 100644 --- a/content/cn/v-0.10/references/components/div.html +++ b/content/cn/v-0.10/references/components/div.html @@ -466,11 +466,11 @@ </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> @@ -930,11 +930,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/image.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/image.html b/content/cn/v-0.10/references/components/image.html index f9ee3c2..84a5fef 100644 --- a/content/cn/v-0.10/references/components/image.html +++ b/content/cn/v-0.10/references/components/image.html @@ -466,11 +466,11 @@ </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> @@ -930,11 +930,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/index.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/index.html b/content/cn/v-0.10/references/components/index.html index b51f853..3a73fb1 100644 --- a/content/cn/v-0.10/references/components/index.html +++ b/content/cn/v-0.10/references/components/index.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/indicator.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/indicator.html b/content/cn/v-0.10/references/components/indicator.html index 47df820..ebb04a8 100644 --- a/content/cn/v-0.10/references/components/indicator.html +++ b/content/cn/v-0.10/references/components/indicator.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/input.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/input.html b/content/cn/v-0.10/references/components/input.html index 7287e60..88ce18c 100644 --- a/content/cn/v-0.10/references/components/input.html +++ b/content/cn/v-0.10/references/components/input.html @@ -463,11 +463,11 @@ </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 current "><input></a> </li> <li> - <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link current "><input></a> + <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a> </li> <li> @@ -927,11 +927,11 @@ </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 current "><input></a> </li> <li> - <a href="/cn/v-0.10/references/components/input.html" class="sidebar-link current "><input></a> + <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link "><list></a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/list.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/list.html b/content/cn/v-0.10/references/components/list.html index 23ddf6b..df4b78d 100644 --- a/content/cn/v-0.10/references/components/list.html +++ b/content/cn/v-0.10/references/components/list.html @@ -466,11 +466,11 @@ </li> <li> - <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link current "><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 current "><list></a> </li> <li> @@ -930,11 +930,11 @@ </li> <li> - <a href="/cn/v-0.10/references/components/list.html" class="sidebar-link current "><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 current "><list></a> </li> <li> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/loading.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/loading.html b/content/cn/v-0.10/references/components/loading.html index 26cbc9f..cd032bf 100644 --- a/content/cn/v-0.10/references/components/loading.html +++ b/content/cn/v-0.10/references/components/loading.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/refresh.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/refresh.html b/content/cn/v-0.10/references/components/refresh.html index 1c0062a..9a8f46c 100644 --- a/content/cn/v-0.10/references/components/refresh.html +++ b/content/cn/v-0.10/references/components/refresh.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/scroller.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/scroller.html b/content/cn/v-0.10/references/components/scroller.html index a3bc539..49c4ef8 100644 --- a/content/cn/v-0.10/references/components/scroller.html +++ b/content/cn/v-0.10/references/components/scroller.html @@ -466,11 +466,11 @@ </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> @@ -930,11 +930,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/slider.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/slider.html b/content/cn/v-0.10/references/components/slider.html index fdc1a54..9628371 100644 --- a/content/cn/v-0.10/references/components/slider.html +++ b/content/cn/v-0.10/references/components/slider.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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> http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/88192870/content/cn/v-0.10/references/components/switch.html ---------------------------------------------------------------------- diff --git a/content/cn/v-0.10/references/components/switch.html b/content/cn/v-0.10/references/components/switch.html index ad34ba2..6cb13bc 100644 --- a/content/cn/v-0.10/references/components/switch.html +++ b/content/cn/v-0.10/references/components/switch.html @@ -463,11 +463,11 @@ </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> @@ -927,11 +927,11 @@ </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>