<div class="codetitle"> <span><a style="CURSOR: pointer" data="77993" class="copybut" id="copybut77993" onclick="doCopy('code77993')"><u>複製程式碼</u></a></span>如下碼:</div> <div class="codebody" id="code77993"> <br>$.ajax({ <br>type:"POST", <br>url:"../page/user.action?userId="userNo, <br>dataType:"json", <br>data:{ <br>"userId":userNo, <br>"userName":使用者名稱<br>}, <br>success:function(data){ <br>console.info(data.items); <br>console.dir(data.items.length) <br>} <br>} ); <br> </div>