【问题标题】:Plupload in .NET - raising an error in the Plupload control.NET 中的 Plupload - 在 Plupload 控件中引发错误
【发布时间】:2011-10-20 07:11:29
【问题描述】:

我有一个事件处理程序,用于在 Plupload 中引发错误时:

Error: function(up, args) {
  // do something
}

如何在代码的其他地方引发错误?我想说up.RaiseError("something is wrong etc")

【问题讨论】:

    标签: .net plupload


    【解决方案1】:

    您可以手动触发错误事件:

    up.trigger('Error', args);
    

    args 基本上可以是你想要的任何东西。为保持一致性,args 应该是一个具有 2 个必需键 codemessage,以及 2 个可选键 filestatus 的对象。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-04
      • 2019-07-30
      • 1970-01-01
      • 1970-01-01
      • 2015-01-10
      • 1970-01-01
      • 2016-09-28
      • 1970-01-01
      相关资源
      最近更新 更多