Jos*_*ero 0 javascript fine-uploader
有没有办法阻止onError回调被触发的警报?
我只需要捕获错误并以不同的方式显示它
是的,只需覆盖该showMessage选项.
例如:
var uploader = new qq.FineUploader({
request: {
endpoint: 'my/endpoint'
},
callbacks: {
onError: function(fileId, filename, reason, maybeXhr) {
//do something with the error
}
},
showMessage: function(message) {
//either include an empty body, or some other code to display (error) messages
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
874 次 |
| 最近记录: |