zoukankan      html  css  js  c++  java
  • js serialize()

    //提交

        $("input[type='button']").eq(1).click(function () {

            var data=$("#form").serialize();

            var url=$("#form").attr('action');

    //        alert(data);return false;

            $.ajax({

                type:'post',

                url:url,

                data:data,

                success:function (msg) {

                    if(msg=='false'){

                        alert("注册失败");

                        return false;

                    }

                    alert("注册成功");

                    location.href="http://127.0.0.1/index1.php";

                }

            })

        })

  • 相关阅读:
    Cocos2d-html5 笔记2: director
    Cocos2d html5 笔记 1: overview
    Device Pixel Ratio & Media Queries
    Viewport
    Viewport解决分辨率适配问题
    Ajax缓存解决办法
    capitalize()
    chr() 、ord()
    oct()
    eval()
  • 原文地址:https://www.cnblogs.com/huhewei/p/12687692.html
Copyright © 2011-2022 走看看