记录一下 ajax的基础传送

传数据

var json = $("#form").serializeObject();
$.ajax({
    url: "/getUser",
    type: "get",
    dataType: "json",
    data: json,
    success:function(data) {
    console.log(data);
}
});                  
posted @ 2019-03-08 13:50  Draymonder  阅读(119)  评论(0编辑  收藏  举报