<div class="codetitle"> <span><a style="CURSOR: pointer" data="62434" class="copybut" id="copybut62434" onclick="doCopy('code62434')"><u>複製程式碼</u></a></span>以下程式碼:</div> <div class="codebody" id="code62434"> <br><tr> <br><td width="10%"> <br><property value="#owner.id"></property> <br> </td> <br><td width="20%"> <br><property value="#owner.name "></property> <br> </td> <br><td width="15%"> <br><property value="#owner.floor"></property> <br> </td> <br> <br><property value="#owner.number"></property> <br> <br><td width="20%"> <br><s: property value="#owner.telephone"></s:> <br> </td> <br><td width="20%" align="center"> <br><a href="addOwner.jsp">新增| <br></a><a href="javascript:void(0)" onclick="updateOwner(<s:property value="></a>,'<property value="#owner.name"></property> ','<property value="#owner.floor"></property>','<property value="#owner.number"></property>','<s:></s:>')"> <br>修改| <br><a href="javascript:void(0)" onclick="deleteOwner('<s:property value="></a>',this)">刪除 ; <br> </td> <br> </tr> <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="54148" class="copybut" id="copybut54148" onclick="doCopy('code54148')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code54148"> <br>函數deleteOwner(id,obj ){ <br>var o=$(obj); <br>if(confirm("確定刪除?")){ <br>$.post( <br>"deleteOwner!deleteOwner", <br>{id: id}, <br>function(){ <br> alert("刪除成功!!!") <br>o.parents("tr").remove(); <br>} <br>} <br><br> <br>1.剛開始因為這個放錯位置了,死活不!</div>