|
js代码:
<script language="javascript" src="../js/ZeroClipboard.js"></script>
ZeroClipboard.setMoviePath("../js/ZeroClipboard.swf");
var clip1 = new ZeroClipboard.Client();
clip1.setHandCursor(true);
clip1.addEventListener('mouseOver', function (client) {
clip1.setText(getValue(list));
});
clip1.addEventListener('complete', function (client, text) {
if (userlist.isEmpty()) return showErrMsg("没有任何数据");
alert("成功复制到粘贴板,请打开WORD或EXCEL粘贴");
});
clip1.glue('btn_export1');
html代码:
<input id="btn_export2" type="button" value="导 出"/>
源代码如上,请问这种按钮如何点击? |
|