我有一个 HTTP 处理程序(.ashx),它从数据库生成一些 html 代码,我想从我的 Jquery 函数中调用它并传递一个值(userID)。
我不知道如何调用它并检索它的数据。
像这样的东西。
$(document).ready(function() {
$.get("http://path/to/handler.ashx", function(html) {
alert(html);
});
});
使用 Google - 键入后的第一个站点jquery ashx
- https://sites.google.com/site/spyderhoodcommunity/tech-stuff/usingjqueryinaspnetappswithhttphandlersashx