Home > front end >  Wan ke bot API ajax parsererror cross-domain request failed
Wan ke bot API ajax parsererror cross-domain request failed

Time:10-14

The $(document). Ready (function () {
"Use strict";
$(" # send ") on (" click ", function () {
Var STR=$(" # text "). Val ();
$(" # text "). Val (" ");
$(" chat "). Append ("
  • "+ STR +"
  • ");
    $(" chat "). The scrollTop ($(" chat ") [0]. ScrollHeight);



    //$. Ajax ({
    //the type: "get",
    //url: "http://api.qingyunke.com/api.php? Key=free&appid=0 & MSG="+ encodeURI (STR),
    //data: ", "
    //dataType: "json",
    //success: function (json) {
    //},
    //error: function (XMLHttpRequest, textStatus errorThrown) {
    //alert (XMLHttpRequest. Status);
    //alert (XMLHttpRequest. ReadyState);
    //alert (textStatus);
    ////alert (errorThrown);
    //}
    //});
    });

    $(" # text ") on (" click ", function () {
    $(" # text "). Val (" ");
    });

    });
    •  Tags:  
    • Ajax
    • Related