14-2.txt
来自「Javascript语言开发经典教程开发」· 文本 代码 · 共 24 行
TXT
24 行
<SCRIPT>var _console = null;function debug(msg) { // Open a window the first time we are called, or after an existing // console window has been closed. if ((_console == null) || (_console.closed)) { _console = window.open("","console","width=600,height=300,resizable"); // Open a document in the window to display plain text. _console.document.open("text/plain"); } _console.document.writeln(msg);}</SCRIPT><!-- Here's an example of using this script. --><SCRIPT>var n = 0;</SCRIPT><FORM><INPUT TYPE="button" VALUE="Push Me" onClick="debug('You have pushed me:\t' + ++n + ' times.');"></FORM>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?