When not using AJAX value transfer

When time passes the value AJAX later stage then we will not pass the background check procedures if there is a problem 

General AJAX program

 

$.ajax(
{
type: "POST",
url: "Login.aspx/Log",
data: JSON.stringify({ "zh": zhanghao, "pwd": mima }),
contentType: "application/json",
dataType: "json",
async: false,
cache: false,
success: function (data)

 

When back station to transmit not value we check whether a change in the transmission of

The following is the format of the following

$.ajax(
{
type: "POST",
url: "User.ashx?action=UserEdit",
data: { FId: FId },
contentType: "application/x-www-form-urlencoded",
dataType: "json",
async: false,
cache: false,
success: function (data)

 

 

 

value for a data format

{In: In},

contentType: for a transmission path value

"application/x-www-form-urlencoded"

 

Guess you like

Origin www.cnblogs.com/yutang-wangweisong/p/11530378.html