I am not so good at English.
It may be hard to read to you, but, please forgive it.
I developed application before in c+.
l found cocoscreator, so I challenge development in javascript.
I want to make donwload(jpg,xml…etc) from http://example.jp/img01.jpg
when I developed by C+, i used like this↓↓↓
I found cocoscreator api 「Pipeline.Downloader」,「cc.loader.load 」.
but I am at a loss for usage.
In the first place, may I download files such as xml by「Pipeline.Downloader」?
I tried 「cc.loader.load 」like this↓↓↓
var download_url = 'http://memopad.bitter.jp/w3c/xml/note.xml';
cc.loader.load(download_url,function() {console.log('now loading');}, function(err, tex) {
})
but it didn’t work. (console log → Get data from file http://hotspring.webcrow.jp/tsukinomichikake/img/data.json failed)
if there is a method,Can you have you teach sample code and tell it in detail?