Demo entry 6685186

123

   

Submitted by anonymous on Dec 19, 2017 at 03:30
Language: JavaScript. Code size: 611 Bytes.

 var mydata = {
        "LoginUser": "admin",
        "LoginPwd": "123",
    };
    var httpUrl = "http://localhost:61182/api/";
    $.ajax({
        url: httpUrl + "MesLogin/LoginUser",
        async: false,
        type: "post",
        dataType: "json",
        contentType: 'application/json',
        data: JSON.stringify(mydata ),
        success: function (data, name) {
            var jsonObj = JSON.parse(data);
            alert(JSON.stringify(jsonObj));
        },
        error: function (XMLHttpRequest, textStatus, errorTHROWN) {
            alert(XMLHttpRequest);
        }
})

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).