<div class="codetitle"> <span><a style="CURSOR: pointer" data="59180" class="copybut" id="copybut59180" onclick="doCopy('code59180')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code59180"> <br>$(function () {<br> ).click(function () {<br> var jqxhr = $.getJSON("http://jsonip.appspot.com?callback=?",<br> alert(data.ip );<br> })<br> .error(function () { alert("error"); })<br> </div>