- $.getJSON("<a href="http://jsonip.appspot.com?callback=?">http://jsonip.appspot.com?callback=?",function(data){
- alert( "你的IP:" + data.ip);
- });
- //该片段来自于http://www.codesnippet.cn/detail/211220121138.html
来源: http://www.codesnippet.cn/detail/211220121138.html