Ajax请求失败

浏览:2639 发布日期:2014/11/15 分类:求助交流
jquery使用的官网的jquery-1.11.1.min.js

使用一下代码进行请求        $.ajax({
            url: "userAdd",
            dataType: "json",
            type: "POST",
            cache: false,
            async:true,
            success: function(data){
               alert(456);
            }
         });
Controller代码是    public function userAdd(){
        $ret['status']  = '1';
        $ret['content'] = 'content';
        $this->ajaxReturn($ret,'json');
    }
为什么就是请求不成功
最佳答案
评论() 相关
后面还有条评论,点击查看>>