2

我有一个玉石页面,我在该页面中有一个验证表单。我正在使用 JavaScript 进行验证。我想知道我们能否连接到 sqlite 并提取这些数据。提前谢谢你

4

2 回答 2

2

Harp 是一个静态网络服务器。它不打算有任何后端代码来处理用户提交的任何内容。harp 为您提供的唯一内容是在生成所服务的页面时进行预处理。

如果您打算构建一个动态 Web 应用程序并使用诸如 Harp 之类的静态服务器为其提供服务,您将需要使用诸如 GoInstant 或 Firebase 之类的第 3 方“后端即服务”产品。

于 2013-12-05T20:30:49.370 回答
1

As z5h mentioned, Harp is a static web server so it doesn’t have something like this built-in, but using a backend as a service like Firebase is a great option.

There are lots of other options, too. If you’re looking to do something fairly involved, I you could use Harp as middleware for an express app that connects to sqlite, for example.

Depending on the complexity of the form you’re creating, you could also attempt the solution client-side. In the past, I’ve used Wufoo, or Google Docs forms and retrieved the data with Tabeletop. If you’re just making a simple form, this might be the best option, but it totally depends on the context.

于 2013-12-16T20:23:22.460 回答