The main purpose is to get the data changed in excel and return the data to certain URL,so I can update data into database.
I've got the value of changed data,the changed data is an array.
How do I pass them to response and return to URL?
Here is the code:
afterChange: function(source, changes) {
    var a;
    if (changes !== 'loadData') {
        $.ajax({
            async: false,
            url: 'url.com',
            dataType: 'json',
            success: function(res) {
                //get data changed at row
                a = hot.getDataAtRow(source[0][0]);
                res = a;
                //console shows the value of res was changed to a;
                console.log(res);
            }
        });
        return a;
    }
}
 
     
    