zoukankan      html  css  js  c++  java
  • 获取手机号归属地

    利用淘宝API

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <body>
        <h2>获取手机号归属地</h2>
        <input type="text" id="num">
        <button id="cityQuery">点击</button>
        <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
        <script>
            $("#cityQuery").click(function () {
                $.ajax({
                    type: 'get',
                    url: 'http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=' + $("#num").val(),
                    dataType: 'script',
                    cache: false,
                    success: function (data) {
                        console.log(__GetZoneResult_.province)
                    }
                });
            });
        </script>
    </body>
    </html>
  • 相关阅读:
    find排除目录
    rm删除文件时排除特定文件
    聚集索引与非聚集索引
    聚集索引
    Union和Union all的区别
    delete、truncate与drop的区别
    apt-get 总结2
    apt-get 依赖修复
    apt-get 总结
    大端 小端
  • 原文地址:https://www.cnblogs.com/yuwen1995/p/13902931.html
Copyright © 2011-2022 走看看