ajax中的参数为一个对象
程序员文章站
2022-07-02 18:01:13
ajax中的参数为一个对象
var user ={
username : $("#username").val(),...
ajax中的参数为一个对象
var user ={ username : $("#username").val(), password : $("#password").val() }
$.ajax({ type:"post", url:"https://localhost:8080/GD/LoginAction_execute.action", data:user, dataType:"text", success:function (data) { alert("登录成功"); } })
推荐阅读
-
Jquery中ajax方法data参数的用法小结
-
php中将一个对象保存到Session中的方法
-
Python中为什么不能用可变对象作为默认参数的值
-
IE浏览器与FF浏览器关于Ajax传递参数值为中文时的区别实例分析
-
PowerShell函数中把参数传入另一个函数的函数传参例子
-
Scrapy 中 Request 对象和 Response 对象的各参数及属性介绍
-
python使用any判断一个对象是否为空的方法
-
Java中成员变量与局部变量的区别、对象类型作为方法的参数和方法的返回值
-
PHP中register_globals参数为OFF和ON的区别(register_globals 使用详解)
-
用C语言写一个函数返回参数二进制中1的个数