2

我正在使用 blueimp 的 jquery 文件上传。上传成功完成后,我可能需要将文件标记为错误。

如何强制重新渲染该行?我正在使用插件提供的 UI 小部件和默认模板。

我在 jquery.fileupload-ui.js 中看到了一个 _renderUpload 函数,但它是私有的。我在下面的示例中将文件标记为错误,但必须重新渲染才能在浏览器中将行渲染为错误。

$('#fileupload').bind('fileuploaddone', function (e, data) {
    data.files[0].error = true;
    // what do i need to here to force re-rendering? 
    //how do i get access to the widget instance and how can i force a re-render?
}
4

0 回答 0