Home >Web Front-end >JS Tutorial >Solution to unresponsive data when using jQuery's Ajax_jquery

Solution to unresponsive data when using jQuery's Ajax_jquery

WBOY
WBOYOriginal
2016-05-16 18:26:321672browse
Copy code The code is as follows:

$.ajax(
{
type: "POST ",
url: "/MemberComment.aspx/GetOrderToBeCommentCount",
success: function(result) {
//ToDo:
}
)

JS does not report any errors when using it. This is the most depressing thing for me. Don't know what's wrong. .
5 minutes. . . 10 minutes. . . . 20 minutes. . . . .
From the C# code to the browser, troubleshooting problems one by one is OK.
The reason for the final problem is that it is OK to change it to the following, missing 2 attributes:
Copy the code The code is as follows:

$.ajax(
{
type: "POST",
contentType: "application/json",
url: "/MemberComment.aspx/GetOrderToBeCommentCount",
data:"{a:'a'}",
success: function(result) {
//ToDo:
}
)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn