調用方法:
$(document).ready(function () {
$.ajax({
url: "xxxxxxxx.ashx",
data: { op: "方法名", 參數1: "0333", 參數2: "100,1" },
cache: false,
dataType: "text",
type: "post",
success: function (data) {
document.write(data);
},
error: function (data) {
document.write(data);
}
});
});
ashx的寫法: