• jquery from提交和post提交


    //from 提交

     function login(){
        $('#login_form').form('submit',{
                  url: '../../../bagechuxing/customer/doLoginRegister',
                  onSubmit: function(param){
                      return $(this).form('validate');
                  },
                  success: function(result){
                   var result = eval('(' + result + ')');
                      if (result.code=="10000"){
                       var cusid = result.data.id;
                       window.location.href= '../../../bagechuxing/jsp/appLogin/applq.html?cusid='+cusid;
                       return;
                      }
                      if(result.code=="10001"){
                       $("#text01").text(result.message);
                       return;
                      }
                  }
              });
      }

    //post

     function lingqu(){
      var path = '../../../bagechuxing/customer/lingquactivityredpackets';
      var params = $.param({ "customeid": customeids});
      $.post(path,params,function(result){
       var result = eval('(' + result + ')');
       if (result.code=="10000") {

     //此处可以打开修改页面进行加载数据

      //$('#fmRuleEdit').form('load',result.rule);
        $("#text01").text(result.message);
        $("#packnum").val(result.data);
                 return;
       }else{
        $("#text01").text(result.message);
                 return;
       }
      });
     }

  • 相关阅读:
    第五周学习总结
    第四周学习总结
    实验三报告
    第2,3周学习总结
    第二次实验报告
    实验一报告
    MyFirstStruts2
    java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
    Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4,and Java EE 5 Web modules
    The JRE could not be found.Edit the server and change the JRE location.
  • 原文地址:https://www.cnblogs.com/cuijinlong/p/6236745.html
Copyright © 2020-2023  润新知