fileBrowser.transport.destroy对象|字符串

处理文件和目录删除的选项或URL。如果没有指定,删除按钮将不存在。

重要:的价值transport.destroy传递给jQuery.ajax

例子

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: "/destroy"}});> < /脚本

fileBrowser.transport.destroy.contentType字符串

发送到服务器的内容类型的HTTP头。默认是“应用程序/ x-www-form-urlencoded”.使用“application / json”如果内容是JSON。参考jQuery.ajax获取更多信息的文档。

例子

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {contentType: "application/json"}}}});> < /脚本

fileBrowser.transport.destroy.data字符串对象| |函数

要发送到服务器的数据。参考jQuery.ajax获取更多信息的文档。

使用实例-指定数据为对象

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {data: {id: 42, name: "John Doe"}}}}});> < /脚本

使用实例-指定数据作为功能

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {data: function() {return {id: 42, name: "John Doe"};}}}}});> < /脚本

fileBrowser.transport.destroy.dataType字符串

期望从服务器返回的数据类型。常用的值有“json”“jsonp”.参考jQuery.ajax获取更多信息的文档。

例子

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {dataType: "json"}}}});> < /脚本

fileBrowser.transport.destroy.type字符串

提出要求的类型(“职位”“把",“把”“删除”),默认为“POST”。参考jQuery.ajax获取更多信息的文档。

例子

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {type: "POST"}}}});> < /脚本

fileBrowser.transport.destroy.url字符串|函数

创建新记录时要调用的远程url。

例子

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {url: "/destroy"}}}});> < /脚本

使用实例-指定销毁URL作为函数

< textarea id = "编辑" > < / textarea > <脚本> $(" #编辑”)。kendoEditor({tools: ["insertFile"], fileBrowser: {transport: {destroy: {url: function(params){//构建url返回"/destroy?t=" + new Date().getTime();}}}}});> < /脚本
在本文中
Baidu
map