JSON response from jQuery get raises “Invalid label”

后端 未结 6 1209
日久生厌
日久生厌 2020-12-20 07:10
       $.ajax({
  beforeSend: function(xhr) {
 xhr.setRequestHeader(\'Authorization\', \"Basic YWRtaW46YWRtaW4=\");        
},
   url: \"https://test.com/incident.do         


        
6条回答
  •  情话喂你
    2020-12-20 07:50

    You say that you know its valid. Can you funnel it into the parseJSON function and see if you have any luck with that?

    $.parseJSON(str_json);

    Note: You haven't mentioned which version of jQuery you're using. This method is available only in jQuery 1.4.1 and above.

提交回复
热议问题