AJAX中的传递参数 [英] passing parameter in AJAX
本文介绍了AJAX中的传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#Customers').change(function() {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "FetchCustomer.asmx/GetCustomer",
data: "{ CustomerID: '" + $('#Customers').val() + "'}",
dataType: "json",
success: function(data) {
$("#CustomerDetails").html(data.d);
}
});
});
});
</script>
@@@@@@@@@@@@@
请帮我为此代码添加三个参数,
@@@@@@@@@@@@
Pls help me to add three para for this code,
推荐答案
(document).ready(function(){
(document).ready(function() {
( '#Customers').change(function(){
('#Customers').change(function() {
.ajax({ 输入:"POST", contentType:"application/json; charset = utf-8", 网址:"FetchCustomer.asmx/GetCustomer", 数据:"{CustomerID:'" +
.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "FetchCustomer.asmx/GetCustomer", data: "{ CustomerID: '" +
这篇关于AJAX中的传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文