zoukankan      html  css  js  c++  java
  • 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;
       }
      });
     }

  • 相关阅读:
    检测后缀表达式的合法性
    对表达式进行空白符预处理
    字符串替换
    中缀表达式的计算
    Linux shell编程
    Linux常用shell
    [转载]shell脚本编写规范
    [转载]Linux文件类型
    Linux的进程
    Linux进入命令行模式
  • 原文地址:https://www.cnblogs.com/cuijinlong/p/6236745.html
Copyright © 2011-2022 走看看