1
我使用$ http.get來獲取由MailID和SubscribedDate組成的數據。 結果被分配給$ scope.subscriber。我會活着都MailID值像數組:["[email protected]","[email protected]", "[email protected]"]
\t getAll();
\t function getAll() {
\t \t var servCall = APIService.getSubs();
\t \t servCall.then(function (d) {
\t \t \t $scope.subscriber = d;
\t \t }, function (error) {
\t \t \t console.log('Oops! Something went wrong while fetching the data.')
\t \t });
有什麼問題?哪些數據在'd.data'中返回? –
這是JSON與MailID和SubscribedDate – neela
什麼是JSON的結構?在您的問題中添加示例回覆。 –