我对Node.js很新.我正在尝试如何使用NodeJS调用服务.如果可以指出以下代码的NodeJS等效,将会很有帮助:
$.ajax({
type: "POST",
url: "/WebServiceUtility.aspx/CustomOrderService",
data: "{'id': '2'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (message) {
ShowPopup(message);
}
});
Run Code Online (Sandbox Code Playgroud)
任何有用的链接将非常感谢.