<bdo id='toksH'></bdo><ul id='toksH'></ul>

<legend id='toksH'><style id='toksH'><dir id='toksH'><q id='toksH'></q></dir></style></legend>
  • <tfoot id='toksH'></tfoot>

    <small id='toksH'></small><noframes id='toksH'>

    <i id='toksH'><tr id='toksH'><dt id='toksH'><q id='toksH'><span id='toksH'><b id='toksH'><form id='toksH'><ins id='toksH'></ins><ul id='toksH'></ul><sub id='toksH'></sub></form><legend id='toksH'></legend><bdo id='toksH'><pre id='toksH'><center id='toksH'></center></pre></bdo></b><th id='toksH'></th></span></q></dt></tr></i><div id='toksH'><tfoot id='toksH'></tfoot><dl id='toksH'><fieldset id='toksH'></fieldset></dl></div>

        是否可以从 JavaScript 访问 SQLite 数据库?

        Is it possible to access an SQLite database from JavaScript?(是否可以从 JavaScript 访问 SQLite 数据库?)

        <small id='XoYFF'></small><noframes id='XoYFF'>

        1. <i id='XoYFF'><tr id='XoYFF'><dt id='XoYFF'><q id='XoYFF'><span id='XoYFF'><b id='XoYFF'><form id='XoYFF'><ins id='XoYFF'></ins><ul id='XoYFF'></ul><sub id='XoYFF'></sub></form><legend id='XoYFF'></legend><bdo id='XoYFF'><pre id='XoYFF'><center id='XoYFF'></center></pre></bdo></b><th id='XoYFF'></th></span></q></dt></tr></i><div id='XoYFF'><tfoot id='XoYFF'></tfoot><dl id='XoYFF'><fieldset id='XoYFF'></fieldset></dl></div>
            <tbody id='XoYFF'></tbody>
          <tfoot id='XoYFF'></tfoot>
            <legend id='XoYFF'><style id='XoYFF'><dir id='XoYFF'><q id='XoYFF'></q></dir></style></legend>

                • <bdo id='XoYFF'></bdo><ul id='XoYFF'></ul>
                  本文介绍了是否可以从 JavaScript 访问 SQLite 数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一组 HTML 文件和一个 SQLite 数据库,我想使用 file://方案从浏览器访问它们.是否可以使用 JavaScript 访问数据库并创建查询(和表)?

                  I have a set of HTML files and a SQLite database, which I would like to access from the browser, using the file:// scheme. Is it possible to access the database and create queries (and tables) using JavaScript?

                  推荐答案

                  其实答案是肯定的.以下是如何执行此操作的示例:http://html5doctor.com/introducing-web-sql-databases/

                  Actually the answer is yes. Here is an example how you can do this: http://html5doctor.com/introducing-web-sql-databases/

                  不好的是浏览器对它的支持非常有限.

                  The bad thing is that it's with very limited support by the browsers.

                  此处的更多信息HTML5 IndexedDB、Web SQL 数据库和浏览器战争

                  PS:正如@Christoph 所说,Web SQL 不再处于积极维护状态,而 Web 应用程序工作组会这样做不打算进一步维护它,所以请看这里https://developer.mozilla.org/en-US/docs/IndexedDB.

                  PS: As @Christoph said Web SQL is no longer in active maintenance and the Web Applications Working Group does not intend to maintain it further so look here https://developer.mozilla.org/en-US/docs/IndexedDB.

                  编辑

                  正如@clentfort 所说,您可以使用 SQL.js 使用客户端 JavaScript 访问 SQLite 数据库.

                  As @clentfort said, you can access SQLite database with client-side JavaScript by using SQL.js.

                  这篇关于是否可以从 JavaScript 访问 SQLite 数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  embedding image in html email(在 html 电子邮件中嵌入图像)
                  Splitting the string in sql server(在 sql server 中拆分字符串)
                  create table with sequence.nextval in oracle(在oracle中用sequence.nextval创建表)
                  SQL recursive query on self referencing table (Oracle)(自引用表 (Oracle) 上的 SQL 递归查询)
                  Composite Primary key vs additional quot;IDquot; column?(复合主键与附加“ID柱子?)
                  How to check if a database exists in SQL Server?(如何检查数据库是否存在于 SQL Server 中?)
                • <legend id='J8GM9'><style id='J8GM9'><dir id='J8GM9'><q id='J8GM9'></q></dir></style></legend>

                      <tbody id='J8GM9'></tbody>

                    <i id='J8GM9'><tr id='J8GM9'><dt id='J8GM9'><q id='J8GM9'><span id='J8GM9'><b id='J8GM9'><form id='J8GM9'><ins id='J8GM9'></ins><ul id='J8GM9'></ul><sub id='J8GM9'></sub></form><legend id='J8GM9'></legend><bdo id='J8GM9'><pre id='J8GM9'><center id='J8GM9'></center></pre></bdo></b><th id='J8GM9'></th></span></q></dt></tr></i><div id='J8GM9'><tfoot id='J8GM9'></tfoot><dl id='J8GM9'><fieldset id='J8GM9'></fieldset></dl></div>
                        <bdo id='J8GM9'></bdo><ul id='J8GM9'></ul>

                          1. <small id='J8GM9'></small><noframes id='J8GM9'>

                            <tfoot id='J8GM9'></tfoot>