Javascript 在浏览器中,Chrome方法POST类似于GET

Javascript 在浏览器中,Chrome方法POST类似于GET,javascript,jquery,ajax,google-chrome,Javascript,Jquery,Ajax,Google Chrome,在所有浏览器中都可以,但在chrome方法中,POST就像GET一样 $(function() { $('#login').submit(function(e) { e.preventDefault(); if ($(this).parsley('validate')) { $.ajax ({ type: "POST",

在所有浏览器中都可以,但在chrome方法中,POST就像GET一样

   $(function() { 
           $('#login').submit(function(e) {
              e.preventDefault();
              if ($(this).parsley('validate')) {
                 $.ajax ({
                     type: "POST",
                      url: "user/login.php",
                     data: $(this).serialize(),
                 dataType: "json",
                    error: function(jqXHR, textStatus, errorThrown) {
                           location.href="pages-500.php";
                           },
                  success: function(data) {
                           if (data.status === 'OK') {
                               location.href= '';
                           }
                           else {
                              $('#error').html(data.message);
                           }
                         }
              }); } });
        }); 
结果:

请求方法:获取 状态代码:200 OK

为什么??在frontpage站点的另一部分中,ajax在chrome中工作良好(发送邮件、联系……等)

中的问题

    $(function() { 
});
chrome在这个noname函数中没有看到ajax 他到表格去问。表单中的操作为空(处理程序),无处发送查询 方法的形式也是空的,即GET发送的浏览器

问题解决