$.ajax({
        // 请求方式
        type:"post",
        // contentType 
        contentType:"application/json",
        // dataType
        dataType:"json",
        // url
        url:url,
        // 把JS的对象或数组序列化一个json 字符串
        data:JSON.stringify(data),
        // result 为请求的返回结果对象
        success:function (result) {
            if (200 == result.code){
                alert("启动成功");
            }else{
                alert("启动失败");
            }
        }
    });

 

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-06-12
猜你喜欢
  • 2021-10-03
  • 2021-08-09
  • 2021-11-23
  • 2021-09-28
  • 2021-11-02
  • 2021-11-02
相关资源
相似解决方案