0

onErrorコールバックが発生したアラートを防ぐ方法はありますか?

エラーをキャプチャして別の方法で表示するだけです

4

1 に答える 1

6

はい、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
    }
});
于 2013-06-13T20:33:40.287 に答える