我已經使用JSON.parse(data.Body)它給我正確的結果,這是一個對象。angular.fromJson(data.Body)vs JSON.parse(data.Body)
,因爲我NPM運行皮棉,它給我的錯誤:「你應該使用angular.fromJson methof代替JSON.parse
這是我的代碼:this.$log.log(angular.fromJson(data.Body), JSON.parse(data.Body));
我不明白什麼是第一個輸出,Uint8Array?
我該怎麼做才能得到相同的結果?我不需要無符號整數.... 的data.Body是一個整數數組只,但是當我做了JSON.parse,它是一個對象
哪裏是我的對象???? ?!
'UInt8Arrays'是無符號8位整數的數組 - 參見[Javascript typed arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays )。 –
告訴我們什麼是'data.Body'。 angular.fromJSON只是JSON.parse()的一個包裝,用於檢查參數是否爲字符串 –
@Maximus我已更新 –