<div class="codetitle"> <span><a style="CURSOR: pointer" data="29983" class="copybut" id="copybut29983" onclick="doCopy('code29983')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code29983"> <br>var obj = {name:'jack'} <br>obj .hasOwnProperty('name'); // --> true <br>obj.hasOwnProperty('toString'); // --> false <br> </div>