摘要:
前台代码:<script type="text/javascript"> var xhr; window.onload = function () { xhr = new XMLHttpRequest(); document.getElementById("btnAdd").onclick = AddData; } function AddData() { xhr.open("POST", "TestAjax.ashx", true);xhr.setRequestHeader("Content 阅读全文