日期:2014-05-16  浏览次数:20364 次

ajax jq 实现登陆无刷新 大虾近来看看
没写完  应该怎么写

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
      <script type="text/javascript">
          $(document).ready(function () {
              function loginin() {
                  var name = $('#txt').val();
                  var passwd = $('#passwd').val();
                  $.ajax({
                      type: 'post',
                      url: 'Login.aspx',
                      dataType: 'json',
                      data: 'username=' + name + '&userpasswd=' + passwd,
                      success: function () { },
                      error: function () { alert("error"); }
                  })
              }

          });

        </script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

       帐户<input type="text" id="txt" name="txt" /><br />
       密码<input type="text" id="passwd" name="passwd" />
       <input type="submit" id="resu" />
    </div>
    </form>
</body>
</html>

这句话什么意思var plugin = $.editable.types[settings.type].plugin || function () { };解决方案