jq ajax post body raw传json

$.ajax(
                {
                    url: '',
                    'data': JSON.stringify({
                  
                    }),
                    'type': 'POST',
                    'processData': false,
                    'contentType': 'application/json', //typically 'application/x-www-form-urlencoded', but the service you are calling may expect 'text/json'... check with the service to see what they expect as content-type in the HTTP header.
                    success: function (msg) {
                        
                    }
                }
            );

 

posted @ 2018-08-09 13:56  小小高  阅读(13674)  评论(0编辑  收藏  举报