log('requestData', data) $.ajax({ url: baseUrl + '/postUserInfo', method: 'POST', contentType: "application/json; charset=utf-8", data: JSON.stringify(data), success: function(data) { getComments(); window.location.href = '#comments-title'; $('#success').html('评论成功!'); } }) });