2014-10-30 43 views
0

我需要使用zeroclipboard将表复制到剪贴板。但我还需要在添加列之前编辑该表格,然后再将其移动到剪贴板。zeroclipboard在复制到剪贴板之前编辑数据

I use that code but nothing happened: 

<code> 
    var clientTarget = new ZeroClipboard($("#target-to-copy"), { 
     moviePath: "ZeroClipboard.swf", 
     debug: false 
    }); 
    clientTarget.on("aftercopy", function (e) { 
    var editedTable=; 
    clipboard.setData("text/plain", editedTable);*/ 
    }); 
</code> 

I run example on localhost server. 

回答

0

如果你想哟编辑数据之前将其复制,你必须使用beforecopy事件:我想你也可以修改里面过你的表。

相关问题