如何仅使用jquery插入数据JS? [英] How to insert data JS with jquery only?

查看:63
本文介绍了如何仅使用jquery插入数据JS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想仅使用JavaScript和JQuery插入数据

而不使用WebMethod



我尝试过:



仅使用JavaScript和JQuery插入数据

不使用WebMethod

I want to insert data using only JavaScript and JQuery
without use WebMethod

What I have tried:

Insert data using only JavaScript and JQuery
without use WebMethod

推荐答案

jQuery在客户端上运行,并且(我假设)您的数据存储在服务器上,因此更新它的唯一方法是通过调用服务器端代码(如Web方法)。所以基本上你不能做你想做的事情,客户端上的代码无法操纵服务器上的数据库。
jQuery runs on the client and (I assume) your data store is on the server so the only way to update it is via calling server-side code such as a web method. So basically you can't do what you're looking to do, code on the client can't manipulate a database on the server.


这篇关于如何仅使用jquery插入数据JS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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