如何将多个参数从 jQuery 传递到 ASHX 文件。我想使用 POST 发送三个值,而不是 GET。
How can I pass more than one parameter from jQuery to an ASHX file. I want to send three values with POST, not GET.
$.ajax({ 'type' : 'POST', 'url' : '/my_great_ashx_file.ashx', 'data' : { 'first_field' : 'foo', 'second_field' : 'bar', 'third_field' : 'buz' }, 'success' : function () { alert('This was a triumph.'); } })
$.post("test.php", { name: "John", time: "2pm" }, function(data) { alert("Data Loaded: " + data); });
代码来自: http://api.jquery.com/jQuery.post/
Code from: http://api.jquery.com/jQuery.post/
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
代码来自: http://api.jquery.com/jQuery.post/
Code from: http://api.jquery.com/jQuery.post/