如何从.ts页面打印html页面中的数据?

时间:2019-05-16 09:21:16

标签: ionic4

如何从.ts页面打印html页面中的数据?

 var settings = {

  "url": "http://api.watchover247.com/api/community",
  "method": "GET",
  "headers": {
    "x-watchover-key": "apikey",//<-------
    "cache-control": "/Api/CommunityController",

  }
}

$.ajax(settings).done(function (data) {

 $.each(data, function(key, value) {
              var ss = (value['name']);

              console.log(ss);
                 });
});

0 个答案:

没有答案