如何从.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);
});
});