藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

[javascript]if條件中的「或」

如題,運算符是什麼?or?還是||?
比如我想當pa0 == "next"和pa0 == "submit"的時候都做同樣的操作,應該怎麼寫?

[code]
if (pa0.equals(" next")||pa0.equals("submit"))
[/code]

多謝




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com