GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing developer.mozilla.org — if...else - JavaScript | MDN 尝试一下语法js
描述可以嵌套多个 js 要看看它如何工作,可以调整下嵌套的缩进: js 要在一个子句中执行多条语句,可使用块语句( js 不使用块可能会导致令人困惑的行为,尤其是在代码是手动格式化的情况下。例如: js 这段代码看上去没什么问题,但是,执行 js 通常情况下,始终使用块语句是种很好的做法,特别是在涉及嵌套 js 不要将原始的布尔值 js 示例使用 if...elsejs 使用 else if请注意,JavaScript 中没有 js 使用赋值作为条件你几乎不应该在 js 因为与 js 规范
浏览器兼容性参见 | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |