Here is the situation.
I want to get the data in a excel file setting at the server, to show on the page.
I've searched that ajax can be used to request for a server file, so I tried.
and this is the code:
$.ajax({
url: 'http://localhost:8080/data.xls',
method: 'get',
success: function (e) {
console.log(e);
}
});
But the respond get garbled like this: enter image description here
I don't know did I succeed, and what is the data type I got? And if I've succeed, how can I change this type of data to blob?
Thanks a lot!!