zoukankan      html  css  js  c++  java
  • ajax请求后加额外的数据

    $.ajax({
      cache: true,
      type: "POST",
      url:"${ctx!}/bus/trail/getTrailInfoById",
      data:$("#trail_save_form").serialize()+"&load_id="+load_id,

      async: false,
      error: function(request) {
        bootbox.alert("服务器连接错误,请稍后再试");
      },
      success: function(data) {
      if(SQ.isOK(data)){
      var jsonData = SQ.getJson(data);
      alert(jsonData.type);
      $("#type_trail").html(jsonData.type);
      $("#remark_trail").html(jsonData.remark);
      $("#happen_time_trail").html(jsonData.happen_time);
      $("#happen_address_trail").html(jsonData.happen_address);
      bootbox.alert("保存成功", function () {
          $("#btn_modal_close").click();
          });
        }else{
          bootbox.alert("保存失败:"+SQ.getMessage(data));
        }
      }
    });

  • 相关阅读:
    多线程编程核心技术(五)死锁
    SELinux详细配置
    Linux实现RAID
    iSCSi的基本配置
    文本超出省略号之前后省略号实现
    对象冻结
    条件判断的优美写法
    使用VConsole
    重绘和重排(回流)
    移动端rem布局
  • 原文地址:https://www.cnblogs.com/sho560/p/5338545.html
Copyright © 2011-2022 走看看