下面,我把我的上页功能用 j。
Please tell me how to pass query string.
<script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$( #Customers ).change(function() {
$.ajax({
contentType: "text/html; charset=utf-8",
data: "CustomerID=" + $( #Customers ).val(),
url: "FetchCustomer.aspx",
dataType: "html",
success: function(data) {
$("#CustomerDetails").html(data);
}
});
});
});
</script>
我有几个问题。
when type: "POST", then contentType: "application/json; charset=utf-8", has to be application/json? it can not be html?
when type: "POST" then url can t be like url: "Customer.aspx?ID=101/FetchCustomer" I mean I can not then pass query string.
请参见《指南》。 增 编