javascript - 如何使用javascript访问Sqlite数据库?

标签 javascript sqlite

是否可以在javascript的帮助下访问sqlite数据库,如果可以,请给我提供一个示例代码。

最佳答案

Well, if you are working on client side JavaScript, I think you will be out of luck... browsers tend to sandbox the JavaScript environment so you don't have access to the machine in any kind of general capacity like accessing a database.

If you are talking about an SQLite DB on the server end accessed from the client end, you could set up an AJAX solution that invokes some server side code to access it.

If you are talking about Rhino or some other server side JavaScript, you should look into the host language's API access into SQLite (such as the JDBC for Rhino).

信用:所以问题: JavaScript sqlite

如何使用ajax和php访问数据库?

关于javascript - 如何使用javascript访问Sqlite数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9463791/

相关文章:

javascript - 使用箭头键使用输入文本导航两个 HTML 表

javascript - jQuery:获取可能包含或不包含链接的段落标记的文本内容

javascript - 在新部分中使用 CSS 维护事件按钮的解决方案

javascript - Onclick传递两个变量时的语法问题,经典asp

c++ - 在 C++ 中检索 Sqlite 表数据

javascript - 在 webdriver.io 中创建页面对象时出现错误 .setValue 不是函数/无法读取未定义的属性 'setValue'

sql - 来自复合键的索引是否足够?

sqlite - 在 WinRT 应用程序中使用 SQLite 时出现异常

Android Room 编译时警告关于外键中的列不是索引的一部分。这是什么意思?

sqlite - 在 Swift 中从 SQL 查询中排除值