使用jQuery将数据保存到文件中 [英] Save data into file using jquery

查看:1023
本文介绍了使用jQuery将数据保存到文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jquery开发一个网页,该网页可以让我轻松地操作图像.

I am developing a webpage using jquery which let me manipulate images easily.

我设置了一些按钮,客户端(通过浏览器)可以在其中输入一些信息(例如"0"或"1").我的主要问题是我需要将该信息保存到服务器中的文件中,而我还没有找到一种简便的方法.

I have set some buttons in which a client (through a browser) can input some information (for example "0" or "1"). My main problem is that I need to save that information into a file in the server, and I have not found a easily way to do it.

有人建议这样做吗?我已经读过使用ajax可以做到这一点,但是我对使用它感到非常困惑.

Any suggestion to do that? I have read that using ajax it can be done, but I am very confused about using it.

在此先感谢您的帮助.

推荐答案

您将无法使用jQuery将文件直接写入服务器.您将需要使用服务器端语言(例如php,ruby,python,java,node.js等)来执行此操作.您将使用AJAX向您的服务器端应用程序发出请求,该请求以我之前提到的语言编写

You will not be able to write a file directly to the server using jQuery. You will need to do this with a server-side language like php, ruby, python, java, node.js etc. You would use AJAX to make a request to your server-side application written in a language like the one's I previously mentioned.

这篇关于使用jQuery将数据保存到文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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