wjj_123 你好,
只需要使用 Spread 前台方法 SetActiveCell 设置活跃单元格位置即可,方法如下:
- <script type="text/javascript">
- window.onload = function () {
- var spread = this.document.getElementById("FpSpread1");
- spread.onkeydown = test;
- }
- function test() {
- if (event.keyCode==13) {
- var spread = this.document.getElementById("FpSpread1");
- var activecol = spread.ActiveCol;
- var activerow = spread.ActiveRow;
- spread.SetActiveCell(activerow + 1,1);
- }
- }
- </script>
复制代码 |