<strong>JavaScript 對象定義方式</strong> <br>1. var obj = new Object() <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="90879" class="copybut" id="copybut90879" onclick="doCopy('code90879')"><u>複製代碼</u></a></span>代碼如下:</div> <div class="codebody" id="code90879"> <br><!--新增者:oscar999--> <br> <br>; <br> <br>新文件 <br> <br> <br>var obj = new Object(); <br>obj.key = "11"; <br>警報(obj.key); <br>腳本> <br> <br> <br>身體> <br> </div>