回复 1楼ryukinkou的帖子
请使用以下代码测试:
- <script type="text/javascript">
- function keydownfun() {
- if (event.keyCode == 9) {
- var hidden = this.document.getElementById("<%=HiddenField1.ClientID%>");
- var spread = this.document.getElementById("<%=FpSpread1.ClientID %>");
- var button = this.document.getElementById("<%=Button1.ClientID %>");
- if (hidden.value == 'spread') {
- spread.SetActiveCell(2, 3);
- spread.focus();
- hidden.value = 'button';
- }
- else {
- spread.SetActiveCell(2, 3);
- button.focus();
- hidden.value = 'spread';
- }
- }
- }
- </script>
复制代码 |