jQuery .ajax()使用方法

$.ajax( {
                type : 'POST',
                url : "写你的请求路径(文件也可以)例如:users/getUsers.php或文件users/getUsers.json",
                data : "参数",
                dataType : "服务器返回的数据类型",
                success : function(data) {
                    //请求成功后要干啥子
                    //data = 服务器返回的数据
                    }
       })
posted @ 2012-07-11 09:35  时生  阅读(195)  评论(0编辑  收藏  举报