zoukankan      html  css  js  c++  java
  • jq中查询IP地址

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>Title</title>
    </head>
    <body>
    您当前的IP地址为<p></p>
    </body>
    <script src="jquery-1.11.3.js"></script>
    <script>
    var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_=' + Math.random();
    $.getJSON(url, function(data) {
    document.querySelector('p').innerHTML=data.Ip;
    });
    </script>
    </html>
  • 相关阅读:
    rebar
    namenode ha
    jmx
    doclint in jdk8
    maven source
    avd
    ccw-ide
    ST3使用
    Web worker
    离线web-ApplicationCache
  • 原文地址:https://www.cnblogs.com/zhuyupingit/p/6650571.html
Copyright © 2011-2022 走看看