cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1682113 [6/6] - in /cordova/site: public/ public/announcements/2015/05/ public/announcements/2015/05/26/ public/blog/ public/docs/de/edge/ public/docs/en/edge/ public/docs/zh/3.5.0/ public/docs/zh/edge/ public/docs/zh/edge/img/guide/platfo...
Date Wed, 27 May 2015 20:06:54 GMT
Added: cordova/site/public/docs/zh/edge/cordova_storage_sqltransaction_sqltransaction.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/zh/edge/cordova_storage_sqltransaction_sqltransaction.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/zh/edge/cordova_storage_sqltransaction_sqltransaction.md.html
(added)
+++ cordova/site/public/docs/zh/edge/cordova_storage_sqltransaction_sqltransaction.md.html
Wed May 27 20:06:53 2015
@@ -0,0 +1,260 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no,
width=device-width">
+        <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+        <title>Apache Cordova API Documentation</title>
+
+        <link rel="stylesheet" type="text/css" href="index.css">
+        <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and
(max-device-width: 1024px)">
+        <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+    </head>
+    <body>
+        <div id="header">
+            <h1><a href="index.html">Apache <strong>Cordova</strong>
Documentation</a></h1>
+            <small>
+                <select><optgroup label="Chinese" value="zh">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+            </small>
+        </div>
+        <div id="subheader">
+            <h1>SQLTransaction</h1>
+            <small><select><option value="SQLTransaction">SQLTransaction</option><option
value="SQLTransaction_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;- &#x65B9;&#x6CD5;</option><option
value="SQLTransaction_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;- &#x8A73;&#x7D30;&#x8CC7;&#x8A0A;</option><option
value="SQLTransaction_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;- &#x652F;&#x63F4;&#x7684;&#x5E73;&#x81FA;</option><option
value="SQLTransaction_sql">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-
&#x57F7;&#x884C; SQL &#x5FEB;&#x901F;&#x793A;&#x4F8B;</option><option
value="SQLTransaction_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;- &#x5B8C;&#x6574;&#x7684;&#x793A;&#x4F8B;</option></select></small>
+        </div>
+
+        <div id="sidebar">
+            <div class="vertical_divider"></div>
+        <h1>
+    &#x8F14;&#x52A9;&#x7DDA;
+  </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%E6%A6%82%E8%BF%B0">&#x6982;&#x8FF0;</a></li>
+<li><a href="guide_support_index.md.html#%E5%B9%B3%E8%87%BA%E6%94%AF%E6%8F%B4">&#x5E73;&#x81FA;&#x652F;&#x63F4;</a></li>
+<li><a href="guide_cli_index.md.html#%E5%91%BD%E4%BB%A4%E5%88%97%E4%BB%8B%E9%9D%A2">&#x547D;&#x4EE4;&#x5217;&#x4ECB;&#x9762;</a></li>
+<li><a href="guide_platforms_index.md.html#%E5%B9%B3%E8%87%BA%E6%8C%87%E5%8D%97">&#x5E73;&#x81FA;&#x6307;&#x5357;</a></li>
+<li><a href="plugin_ref_plugman.md.html#%E4%BD%BF%E7%94%A8%20Plugman%20%E4%BE%86%E7%AE%A1%E7%90%86%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F">&#x4F7F;&#x7528;
Plugman &#x4F86;&#x7BA1;&#x7406;&#x5916;&#x639B;&#x7A0B;&#x5F0F;</a></li>
+<li><a href="config_ref_index.md.html#Config.xml%20%E6%AA%94">Config.xml &#x6A94;</a></li>
+<li><a href="config_ref_images.md.html#%E5%9C%96%E7%A4%BA%E5%92%8C%E5%95%9F%E5%8B%95%E7%95%AB%E9%9D%A2">&#x5716;&#x793A;&#x548C;&#x555F;&#x52D5;&#x756B;&#x9762;</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#%E5%B5%8C%E5%85%A5%20WebViews">&#x5D4C;&#x5165;
WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F%E9%96%8B%E7%99%BC%E6%8C%87%E5%8D%97">&#x5916;&#x639B;&#x7A0B;&#x5F0F;&#x958B;&#x767C;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#%E9%9A%B1%E7%A7%81%E6%8C%87%E5%8D%97">&#x96B1;&#x79C1;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_security_index.md.html#%E5%AE%89%E5%85%A8%E6%8C%87%E5%8D%97">&#x5B89;&#x5168;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#%E7%99%BD%E5%90%8D%E5%96%AE%E6%8C%87%E5%8D%97">&#x767D;&#x540D;&#x55AE;&#x6307;&#x5357;</a></li>
+<li><a href="cordova_storage_storage.md.html#%E5%AD%98%E5%84%B2">&#x5B58;&#x5132;</a></li>
+<li><a href="guide_next_index.md.html#%E4%B8%8B%E4%B8%80%E6%AD%A5">&#x4E0B;&#x4E00;&#x6B65;</a></li>
+<li><a href="_index.html">&#x95DC;&#x9375;&#x5B57;&#x7D22;&#x5F15;</a></li>
+</ul>
+<h1>
+    API &#x53C3;&#x8003;
+  </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#%E4%BA%8B%E4%BB%B6">&#x4E8B;&#x4EF6;</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F%E7%9A%84%20Api">&#x5916;&#x639B;&#x7A0B;&#x5F0F;&#x7684;
Api</a></li>
+</ul>
+</div>
+
+        <div id="scrollable">
+            <div id="content">
+                <h1><a name="SQLTransaction">SQLTransaction</a></h1>
+<p>&#x5141;&#x8A31;&#x5C0D;<a href="cordova_storage_database_database.md.html#%E8%B3%87%E6%96%99%E5%BA%AB">&#x8CC7;&#x6599;&#x5EAB;</a>&#x7684;
SQL &#x8A9E;&#x53E5;&#x7684;&#x57F7;&#x884C;&#x3002;</p>
+<h2 id="-"><a name="SQLTransaction_">&#x65B9;&#x6CD5;</a></h2>
+<ul>
+<li><strong>executeSql</strong>: &#x57F7;&#x884C;&#x4E00;&#x500B;
SQL &#x8A9E;&#x53E5;&#x3002;</li>
+</ul>
+<h2 id="-"><a name="SQLTransaction_">&#x8A73;&#x7D30;&#x8CC7;&#x8A0A;</a></h2>
+<p>&#x8ABF;&#x7528; <code>Database</code> &#x7269;&#x4EF6;&#x7684;&#x4EA4;&#x6613;&#x65B9;&#x6CD5;&#xFF0C;&#x5200;&#x8DEF;
<code><a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a></code>
&#x6307;&#x5B9A;&#x7684;&#x56DE;&#x6A94;&#x65B9;&#x6CD5;&#x7684;&#x7269;&#x4EF6;&#x3002;</p>
+<h2 id="-"><a name="SQLTransaction_">&#x652F;&#x63F4;&#x7684;&#x5E73;&#x81FA;</a></h2>
+<ul>
+<li>Android &#x7CFB;&#x7D71;</li>
+<li>&#x9ED1;&#x8393;&#x624B;&#x6A5F; WebWorks &#xFF08;OS 6.0 &#x548C;&#x66F4;&#x9AD8;&#xFF09;</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="-sql-"><a name="SQLTransaction_sql">&#x57F7;&#x884C; SQL &#x5FEB;&#x901F;&#x793A;&#x4F8B;</a></h2>
+<pre class="prettyprint"><code>function populateDB(tx) {
+    tx.executeSql(&apos;DROP TABLE IF EXISTS DEMO&apos;);
+    tx.executeSql(&apos;CREATE TABLE IF NOT EXISTS DEMO (id unique, data)&apos;);
+    tx.executeSql(&apos;INSERT INTO DEMO (id, data) VALUES (1, &quot;First row&quot;)&apos;);
+    tx.executeSql(&apos;INSERT INTO DEMO (id, data) VALUES (2, &quot;Second row&quot;)&apos;);
+}
+
+function errorCB(err) {
+    alert(&quot;Error processing SQL: &quot;+err);
+}
+
+function successCB() {
+    alert(&quot;success!&quot;);
+}
+
+var db = window.openDatabase(&quot;Database&quot;, &quot;1.0&quot;, &quot;Cordova
Demo&quot;, 200000);
+db.transaction(populateDB, errorCB, successCB);
+</code></pre><h2 id="-"><a name="SQLTransaction_">&#x5B8C;&#x6574;&#x7684;&#x793A;&#x4F8B;</a></h2>
+<pre class="prettyprint"><code>&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;Storage Example&lt;/title&gt;
+
+    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;
src=&quot;cordova.js&quot;&gt;&lt;/script&gt;
+    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
+
+    // Wait for device API libraries to load
+    //
+    document.addEventListener(&quot;<a href="cordova_events_events.md.html#deviceready">deviceready</a>&quot;,
onDeviceReady, false);
+
+    // device APIs are available
+    //
+    function onDeviceReady() {
+        var db = window.openDatabase(&quot;Database&quot;, &quot;1.0&quot;,
&quot;Cordova Demo&quot;, 200000);
+        db.transaction(populateDB, errorCB, successCB);
+    }
+
+    // Populate the database
+    //
+    function populateDB(tx) {
+        tx.executeSql(&apos;DROP TABLE IF EXISTS DEMO&apos;);
+        tx.executeSql(&apos;CREATE TABLE IF NOT EXISTS DEMO (id unique, data)&apos;);
+        tx.executeSql(&apos;INSERT INTO DEMO (id, data) VALUES (1, &quot;First row&quot;)&apos;);
+        tx.executeSql(&apos;INSERT INTO DEMO (id, data) VALUES (2, &quot;Second row&quot;)&apos;);
+    }
+
+    // Transaction error callback
+    //
+    function errorCB(err) {
+        alert(&quot;Error processing SQL: &quot;+err);
+    }
+
+    // Transaction success callback
+    //
+    function successCB() {
+        alert(&quot;success!&quot;);
+    }
+
+    &lt;/script&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;h1&gt;Example&lt;/h1&gt;
+    &lt;p&gt;<a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a>&lt;/p&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
+</code></pre>
+            </div>
+        </div>
+
+        <!-- Functionality and Syntax Highlighting -->
+        <script type="text/javascript" src="index.js"></script>
+        <script type="text/javascript" src="prettify/prettify.js"></script>
+    </body>
+</html>

Added: cordova/site/public/docs/zh/edge/cordova_storage_storage.opendatabase.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/zh/edge/cordova_storage_storage.opendatabase.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/zh/edge/cordova_storage_storage.opendatabase.md.html (added)
+++ cordova/site/public/docs/zh/edge/cordova_storage_storage.opendatabase.md.html Wed May
27 20:06:53 2015
@@ -0,0 +1,219 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no,
width=device-width">
+        <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+        <title>Apache Cordova API Documentation</title>
+
+        <link rel="stylesheet" type="text/css" href="index.css">
+        <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and
(max-device-width: 1024px)">
+        <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+    </head>
+    <body>
+        <div id="header">
+            <h1><a href="index.html">Apache <strong>Cordova</strong>
Documentation</a></h1>
+            <small>
+                <select><optgroup label="Chinese" value="zh">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+            </small>
+        </div>
+        <div id="subheader">
+            <h1>&#x5927;&#x6982;</h1>
+            <small><select><option value="%25E5%25A4%25A7%25E6%25A6%2582">&#x5927;&#x6982;</option><option
value="%E5%A4%A7%E6%A6%82_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-
&#x8AAA;&#x660E;</option><option value="%E5%A4%A7%E6%A6%82_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-
&#x652F;&#x63F4;&#x7684;&#x5E73;&#x81FA;</option><option value="%E5%A4%A7%E6%A6%82_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-
&#x5FEB;&#x901F;&#x7684;&#x793A;&#x4F8B;</option><option value="%E5%A4%A7%E6%A6%82_">&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-
&#x5B8C;&#x6574;&#x7684;&#x793A;&#x4F8B;</option></select></small>
+        </div>
+
+        <div id="sidebar">
+            <div class="vertical_divider"></div>
+        <h1>
+    &#x8F14;&#x52A9;&#x7DDA;
+  </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%E6%A6%82%E8%BF%B0">&#x6982;&#x8FF0;</a></li>
+<li><a href="guide_support_index.md.html#%E5%B9%B3%E8%87%BA%E6%94%AF%E6%8F%B4">&#x5E73;&#x81FA;&#x652F;&#x63F4;</a></li>
+<li><a href="guide_cli_index.md.html#%E5%91%BD%E4%BB%A4%E5%88%97%E4%BB%8B%E9%9D%A2">&#x547D;&#x4EE4;&#x5217;&#x4ECB;&#x9762;</a></li>
+<li><a href="guide_platforms_index.md.html#%E5%B9%B3%E8%87%BA%E6%8C%87%E5%8D%97">&#x5E73;&#x81FA;&#x6307;&#x5357;</a></li>
+<li><a href="plugin_ref_plugman.md.html#%E4%BD%BF%E7%94%A8%20Plugman%20%E4%BE%86%E7%AE%A1%E7%90%86%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F">&#x4F7F;&#x7528;
Plugman &#x4F86;&#x7BA1;&#x7406;&#x5916;&#x639B;&#x7A0B;&#x5F0F;</a></li>
+<li><a href="config_ref_index.md.html#Config.xml%20%E6%AA%94">Config.xml &#x6A94;</a></li>
+<li><a href="config_ref_images.md.html#%E5%9C%96%E7%A4%BA%E5%92%8C%E5%95%9F%E5%8B%95%E7%95%AB%E9%9D%A2">&#x5716;&#x793A;&#x548C;&#x555F;&#x52D5;&#x756B;&#x9762;</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#%E5%B5%8C%E5%85%A5%20WebViews">&#x5D4C;&#x5165;
WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F%E9%96%8B%E7%99%BC%E6%8C%87%E5%8D%97">&#x5916;&#x639B;&#x7A0B;&#x5F0F;&#x958B;&#x767C;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#%E9%9A%B1%E7%A7%81%E6%8C%87%E5%8D%97">&#x96B1;&#x79C1;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_security_index.md.html#%E5%AE%89%E5%85%A8%E6%8C%87%E5%8D%97">&#x5B89;&#x5168;&#x6307;&#x5357;</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#%E7%99%BD%E5%90%8D%E5%96%AE%E6%8C%87%E5%8D%97">&#x767D;&#x540D;&#x55AE;&#x6307;&#x5357;</a></li>
+<li><a href="cordova_storage_storage.md.html#%E5%AD%98%E5%84%B2">&#x5B58;&#x5132;</a></li>
+<li><a href="guide_next_index.md.html#%E4%B8%8B%E4%B8%80%E6%AD%A5">&#x4E0B;&#x4E00;&#x6B65;</a></li>
+<li><a href="_index.html">&#x95DC;&#x9375;&#x5B57;&#x7D22;&#x5F15;</a></li>
+</ul>
+<h1>
+    API &#x53C3;&#x8003;
+  </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#%E4%BA%8B%E4%BB%B6">&#x4E8B;&#x4EF6;</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#%E5%A4%96%E6%8E%9B%E7%A8%8B%E5%BC%8F%E7%9A%84%20Api">&#x5916;&#x639B;&#x7A0B;&#x5F0F;&#x7684;
Api</a></li>
+</ul>
+</div>
+
+        <div id="scrollable">
+            <div id="content">
+                <h1><a name="%E5%A4%A7%E6%A6%82">&#x5927;&#x6982;</a></h1>
+<p>&#x8FD4;&#x56DE;&#x4E00;&#x500B;&#x65B0;&#x7684; <code>Database</code>
&#x7269;&#x4EF6;&#x3002;</p>
+<pre class="prettyprint"><code>var dbShell = window.openDatabase(<a href="cordova_storage_parameters_name.md.html#database_name">database_name</a>,
<a href="cordova_storage_parameters_version.md.html#database_version">database_version</a>,
<a href="cordova_storage_parameters_display_name.md.html#database_displayname">database_displayname</a>,
<a href="cordova_storage_parameters_size.md.html#database_size">database_size</a>);
+</code></pre><h2 id="-"><a name="%E5%A4%A7%E6%A6%82_">&#x8AAA;&#x660E;</a></h2>
+<p>&#x65B9;&#x6CD5;&#x5275;&#x5EFA;&#x4E00;&#x500B;&#x65B0;&#x7684;
SQL Lite <a href="cordova_storage_database_database.md.html#%E8%B3%87%E6%96%99%E5%BA%AB">&#x8CC7;&#x6599;&#x5EAB;</a>&#x4E26;&#x8FD4;&#x56DE;
<code>Database</code> &#x5141;&#x8A31;&#x5C0D;&#x8CC7;&#x6599;&#x9032;&#x884C;&#x64CD;&#x4F5C;&#x7684;&#x7269;&#x4EF6;&#x3002;</p>
+<h2 id="-"><a name="%E5%A4%A7%E6%A6%82_">&#x652F;&#x63F4;&#x7684;&#x5E73;&#x81FA;</a></h2>
+<ul>
+<li>Android &#x7CFB;&#x7D71;</li>
+<li>&#x9ED1;&#x8393;&#x624B;&#x6A5F; WebWorks &#xFF08;OS 6.0 &#x548C;&#x66F4;&#x9AD8;&#xFF09;</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="-"><a name="%E5%A4%A7%E6%A6%82_">&#x5FEB;&#x901F;&#x7684;&#x793A;&#x4F8B;</a></h2>
+<pre class="prettyprint"><code>var db = window.openDatabase(&quot;test&quot;,
&quot;1.0&quot;, &quot;Test DB&quot;, 1000000);
+</code></pre><h2 id="-"><a name="%E5%A4%A7%E6%A6%82_">&#x5B8C;&#x6574;&#x7684;&#x793A;&#x4F8B;</a></h2>
+<pre class="prettyprint"><code>&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;Storage Example&lt;/title&gt;
+
+    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;
src=&quot;cordova.js&quot;&gt;&lt;/script&gt;
+    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
+
+    // Wait for device API libraries to load
+    //
+    document.addEventListener(&quot;<a href="cordova_events_events.md.html#deviceready">deviceready</a>&quot;,
onDeviceReady, false);
+
+    // device APIs are available
+    //
+    function onDeviceReady() {
+        var db = window.openDatabase(&quot;test&quot;, &quot;1.0&quot;, &quot;Test
DB&quot;, 1000000);
+    }
+
+    &lt;/script&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;h1&gt;Example&lt;/h1&gt;
+    &lt;p&gt;Open Database&lt;/p&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
+</code></pre>
+            </div>
+        </div>
+
+        <!-- Functionality and Syntax Highlighting -->
+        <script type="text/javascript" src="index.js"></script>
+        <script type="text/javascript" src="prettify/prettify.js"></script>
+    </body>
+</html>

Added: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_done.png
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_done.png?rev=1682113&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_done.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_project.png
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_project.png?rev=1682113&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_project.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_select_location.png
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_select_location.png?rev=1682113&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cordova/site/public/docs/zh/edge/img/guide/platforms/android/asdk_import_select_location.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: cordova/site/public/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/index.html?rev=1682113&r1=1682112&r2=1682113&view=diff
==============================================================================
--- cordova/site/public/index.html (original)
+++ cordova/site/public/index.html Wed May 27 20:06:53 2015
@@ -101,6 +101,24 @@
   <h2>News <a href="/rss.xml" style="font-size:12pt; margin-left:10px">Subscribe</a></h2>
   <ul class="posts">
     
+      <li><span>26 May 2015</span> &raquo; <a href="//cordova.apache.org/announcements/2015/05/26/android-402.html">Apache
Cordova Android 4.0.2 and 3.7.2 released</a>
+      
+<p>A major Security issue were discovered in the Android platform of Cordova. We are
releasing version 4.0.2 of Cordova Android to address these security issues. We recommend
that all Android applications built using Cordova 4.0.x or higher be upgraded to use version
4.0.2 of Cordova Android. If you are using an older version of Cordova, we have also released
3.7.2 with the same fix, and we recommend that you at upgrade your project to either of these
fixed versions. Other Cordova platforms such as iOS are unaffected, and do not have an update.</p>
+
+<p>When using the Cordova CLI, the command to use 4.0.2 of Cordova Android is:</p>
+
+<pre><code>cordova platform add android@4.0.2</code></pre>
+
+<p>and the command to use 3.7.2 is:</p>
+
+<pre><code>cordova platform add android@3.7.2</code></pre>
+
+<p>The security issue is CVE-2015-1835</p>
+
+<p>For your convenience, the text of the CVE is included here.</p>
+
+      <div style="padding-bottom:2em"><a href="//cordova.apache.org/announcements/2015/05/26/android-402.html">Read
More</a></div>
+    
       <li><span>21 Apr 2015</span> &raquo; <a href="//cordova.apache.org/news/2015/04/21/tools-release.html">Tools
Release: April 21, 2015</a>
       
 <p>New versions of cordova tools are now live!</p>
@@ -288,22 +306,6 @@
 
       <div style="padding-bottom:2em"><a href="//cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html">Read
More</a></div>
     
-      <li><span>15 Apr 2015</span> &raquo; <a href="//cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html">Apache
Cordova Android 4.0.0</a>
-      
-<p>We are happy to announce that <code>Cordova Android 4.0.0</code> has
been released!</p>
-
-<p>This release adds significant functionality, and also introduces a number of breaking
changes. Mostly though, it adds first-class support for <a href="https://crosswalk-project.org/">Crosswalk</a>
– a bundled modern WebView!</p>
-
-<p><code>cordova-android@4.0.0</code> will be the default android version
in the next version of <code>cordova</code>. If you just can’t wait though,
you can try it out now:</p>
-
-<pre><code>cd my_project
-cordova platform update android@4.0.0
-cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git#r1.0.0
-# To install Crosswalk (optional):
-cordova plugin add https://github.com/MobileChromeApps/cordova-plugin-crosswalk-webview.git#1.0.0</code></pre>
-
-      <div style="padding-bottom:2em"><a href="//cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html">Read
More</a></div>
-    
   </ul>
   
   <p>

Modified: cordova/site/public/rss.xml
URL: http://svn.apache.org/viewvc/cordova/site/public/rss.xml?rev=1682113&r1=1682112&r2=1682113&view=diff
==============================================================================
--- cordova/site/public/rss.xml (original)
+++ cordova/site/public/rss.xml Wed May 27 20:06:53 2015
@@ -5,8 +5,8 @@
         <description>Apache Cordova - Apache Cordova is a set of device APIs that allow
a web mobile app developer to access native device function from JavaScript.</description>
         <atom:link href="http://cordova.apache.org/rss.xml" rel="self" type="application/rss+xml"
/>
         <link>http://cordova.apache.org/rss.xml</link>
-        <lastBuildDate>Thu, 23 Apr 2015 15:38:13 -0700</lastBuildDate>
-        <pubDate>Thu, 23 Apr 2015 15:38:13 -0700</pubDate>
+        <lastBuildDate>Wed, 27 May 2015 13:00:32 -0700</lastBuildDate>
+        <pubDate>Wed, 27 May 2015 13:00:32 -0700</pubDate>
         <ttl>1800</ttl>
         <image>
             <url>http://cordova.apache.org</url>
@@ -19,6 +19,46 @@
 
 
         <item>
+                <title>Apache Cordova Android 4.0.2 and 3.7.2 released</title>
+                <description>
+&lt;p&gt;A major Security issue were discovered in the Android platform of Cordova.
We are releasing version 4.0.2 of Cordova Android to address these security issues. We recommend
that all Android applications built using Cordova 4.0.x or higher be upgraded to use version
4.0.2 of Cordova Android. If you are using an older version of Cordova, we have also released
3.7.2 with the same fix, and we recommend that you at upgrade your project to either of these
fixed versions. Other Cordova platforms such as iOS are unaffected, and do not have an update.&lt;/p&gt;
+
+&lt;p&gt;When using the Cordova CLI, the command to use 4.0.2 of Cordova Android
is:&lt;/p&gt;
+
+&lt;pre&gt;&lt;code&gt;cordova platform add android@4.0.2&lt;/code&gt;&lt;/pre&gt;
+
+&lt;p&gt;and the command to use 3.7.2 is:&lt;/p&gt;
+
+&lt;pre&gt;&lt;code&gt;cordova platform add android@3.7.2&lt;/code&gt;&lt;/pre&gt;
+
+&lt;p&gt;The security issue is CVE-2015-1835&lt;/p&gt;
+
+&lt;p&gt;For your convenience, the text of the CVE is included here.&lt;/p&gt;
+&lt;!--more--&gt;&lt;hr /&gt;
+&lt;p&gt;CVE-2015-1835: Remote exploit of secondary configuration variables in Apache
Cordova on Android&lt;/p&gt;
+
+&lt;p&gt;Severity: High&lt;/p&gt;
+
+&lt;p&gt;Vendor: The Apache Software Foundation&lt;/p&gt;
+
+&lt;p&gt;Versions Affected: Cordova Android versions up to 4.0.1 (3.7.2 Excluded)&lt;/p&gt;
+
+&lt;p&gt;Description: Android applications built with the Cordova framework that
don’t have explicit values set in Config.xml can have undefined configuration variables
set by Intent. This can cause unwanted dialogs appearing in applications and changes in the
application behaviour that can include the app force-closing.&lt;/p&gt;
+
+&lt;p&gt;The latest release of Cordova Android entirely removes the ability of configuration
parameters to be set by intents. This change is an API change in the platform, and third-party
plugins that use values set in the config.xml should make sure that they use the preferences
API instead of relying on the Intent bundle, whcih can be manipulated in this case.&lt;/p&gt;
+
+&lt;p&gt;Upgrade path: Developers who are concerned about this should rebuild their
applications with Cordova Android 4.0.2. Developers unable to upgrade to 4.0.2 also have the
option of upgrading to Cordova Android 3.7.2. Developers should also make sure that variables
that they wish to have protected are specified in their config.xml.&lt;/p&gt;
+
+&lt;p&gt;Credit:&lt;/p&gt;
+
+&lt;h1 id=&quot;this_issue_was_discovered_by_seven_she_from_trendmicro_mobile_threat_research_team_trt&quot;&gt;This
issue was discovered by Seven She from TrendMicro Mobile Threat Research Team (TRT)&lt;/h1&gt;
+</description>
+                <link>http://cordova.apache.org/announcements/2015/05/26/android-402.html</link>
+                <guid>http://cordova.apache.org/announcements/2015/05/26/android-402</guid>
+                <pubDate>Tue, 26 May 2015</pubDate>
+        </item>
+
+        <item>
                 <title>Tools Release: April 21, 2015</title>
                 <description>
 &lt;p&gt;New versions of cordova tools are now live!&lt;/p&gt;

Modified: cordova/site/www/_posts/2015-05-26-android-402.md
URL: http://svn.apache.org/viewvc/cordova/site/www/_posts/2015-05-26-android-402.md?rev=1682113&r1=1682112&r2=1682113&view=diff
==============================================================================
--- cordova/site/www/_posts/2015-05-26-android-402.md (original)
+++ cordova/site/www/_posts/2015-05-26-android-402.md Wed May 27 20:06:53 2015
@@ -13,11 +13,11 @@ A major Security issue were discovered i
 
 When using the Cordova CLI, the command to use 4.0.2 of Cordova Android is:
 
-    cordova platform add android@4.0.2 --usenpm
+    cordova platform add android@4.0.2
 
 and the command to use 3.7.2 is:
 
-    cordova platform add android@3.7.2 --usenpm
+    cordova platform add android@3.7.2
 
 The security issue is CVE-2015-1835
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message