please add script onError callback !
Opened this issue · 0 comments
huyansheng3 commented
$script(url, function () {
console.log('success');
}, (error) => {
console.log('error', error);
})
i need the fail callback to give the user the information that something load fail!
but now it dont support !!
or maybe you can provider the event to us!
$script(url, function (e) {
if(e.type === 'error') {
console.log('error')
} else {
console.log('success');
}
},)