0
JSON'dan veri almak ve JQuery ile kullanmak için bir çalışma kodum var. JQuery olmadan yapabilir miyim? Nasıl yapabilirim?JSON verilerini JQuery olmadan TVML prohectine alın
function performRequest(type, route, data) {
return $.ajax({
type: type,
dataType: 'json',
url: '...' + route,
data: data
});
}
function getChannels() {
log(' > get channels');
return performRequest('GET', 'channel/list', {id: browserId}).then(function (response) {
response.data.forEach(function (channel) {
channels[channel.id] = channel;
});
});
}