从HTML5-App中读取FTP文件内容的最佳方法是什么?
我试过了:
$.ajax
({
async: false,
url: 'ftp://ftp.XXX.de/Sonstiges/XXX.json',
dataType: 'json',
timeout:30000
})
.done(function (data)
{
//...
})
.fail(function (jqXHR, textStatus)
{
//...
}
但我总是陷入失败,可能是因为跨域安全性错误。