jquery 通用 ajax请求格式

$.ajax({
                    url: "https://jdyx.jd.com/front/hotSkus",
                    type: 'post',
                    dataType: 'json',
                    contentType: "application/json",
                    data: JSON.stringify({
                        activityId: String(APPG.activityId)
                    }),
                    success: function (data, status) {
                        var data = data;
                        //清理数据

                    }
})

 

posted @ 2018-08-02 18:26  米虫的小圈子  阅读(254)  评论(0编辑  收藏  举报