Javascript / jQuery数据存储方法(数据库) [英] Javascript/jQuery Data Storage Method (Database)

查看:151
本文介绍了Javascript / jQuery数据存储方法(数据库)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在设计一个网站,其中包括在服务器上存储一长串名称(无需其他数据),然后根据请求将其输出到客户端浏览器。

I'm currently designing a website that would involve storing a long list of names (with no additional data) on the server and then outputting them to the client browser on request.

为了存储这些名称,我显然需要某种数据存储方法,我只是想知道,因为整个网站都是用javascript / jquery编码的,如果有一个安全的方法存储这些名称,然后使用javascript输出?

To store these names I obviously would need a data storage method of some sort and I was just wondering, as the entire site is coded in javascript/jquery, if there was a secure way to store these names and then output them using javascript?

我想避免PHP / MySQL路由服务器负载的原因,所以我想是否最容易做的事情是将名称存储在纯文本文件中服务器,然后使用AJAX读取名称并输出它们,但我不知道如何安全的是未经授权的更改。请给我你对这种方法的想法。

I wish to avoid the PHP/MySQL route for server load reasons so I was thinking if the easiest thing to do would be to store the names in a plain text file on the server, then use AJAX to read the names and output them, but I don't know how secure that is to unauthorised changes. Please give me your thoughts on this method.

另一种方法是使用TaffyDB库,请给我你的想法。

Another way would be to use the TaffyDB library, please give me your thoughts on that also.

我真的不在乎未经授权的查看数据,因为他们可以看到它在网站上的所有,只是未经授权的更改。

I don't really care about unauthorised viewing of the data as they can see all of it anyway on the site, just unauthorised changes.

感谢,

DLiKS

推荐答案

使用 CouchDB 。任何信息都可以通过AJAX(POST,GET ..)访问。

Use CouchDB. Any information is accessible via AJAX (POST, GET..).

这篇关于Javascript / jQuery数据存储方法(数据库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆