system.webServer>
modules runAllManagedModulesForAllRequests="true">/modules>
httpProtocol>
customHeaders>
add name="Access-Control-Allow-Origin" value="*"/>
add name="Access-Control-Allow-Headers" value="Content-Type"/>
add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE"/>
/customHeaders>
/httpProtocol>
/system.webServer>
var param = {};
var msg = "dafdasfdsaf";
param["userName"] = "1";
param["passWord"] = "1";
param["code"] = "3323";
$.ajax({
url: "http://www.ts-wms.com/UserAjax/Login?t=" + Math.random(),
data: param,
type: "post",
async:false,
success: function (result) {
alert(result);
msg = result;
}
});
alert(msg+"ddddddddddFFFFFFFFFFFFFFFF");