$(function () { $.ajax({ type: 'GET', url: 'https://ptx.transportdata.tw/MOTC/v2/Rail/TRA/Station?$top=10&$format=JSON', //欲呼叫之API網址(此範例為台鐵車站資料) dataType: 'json', headers: GetAuthorizationHeader(), success: function (Data) { $('body').text(JSON.stringify(Data)); } }); });
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more