php-这是jquery.ajax()中的有效url参数吗?

这是jquery.ajax()中的有效url参数吗?

<script type="text/javascript">
   $(document).ready(function() {
    getRecordspage();
  });

  function getRecordspage() {
    $.ajax({
        type: "POST",url: "http://localhost/codeigniter_cup_myth/index.php/adminController/mainAccount",data: "",contentType: "application/json; charset=utf-8",global:false,async: false,dataType: "json",success: function(jsonObj) {
           alert(jsonobj);
        }
    });
}
 </script>

网址似乎没有进入我的控制器功能…

最佳答案
尝试将async设置为true.另外,萤火虫怎么说?

始终使用Firebug来查看实际情况.

相关文章

1.第一步 设置响应头 header(&#39;Access-Control-Allow...
$.inArray()方法介绍 $.inArray()函数用于在数组中搜索指定的...
jquery.serializejson.min.js的妙用 关于这个jquery.seriali...
JS 将form表单数据快速转化为object对象(json对象) jaymou...
jQuery插件之jquery.spinner数字智能增减插件 参考地址:http...