您好,很抱歉回复晚了。因为spread的id可以能会变,所有建议写成如下方式
- <script>
- function CopyCell() {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- spread1.CopyLikeExcel();
- }
- function PasteCell() {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- spread1.PasteLikeExcel();
- }
- function CutCell() {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- spread1.CutLikeExcel();
- }
- </script>
复制代码 |