JS获取登录者IP和登录城市
登录城市:<sp class="cy"></sp><br /> 管理员个数:<font color="#538ec6"><strong>2</strong></font> 人<br /> 登陆者IP:<span class="sp"></span><br /> <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script src="~/Scripts/jquery-3.3.1.min.js"></script> <script> $(function () { $(".sp").text(returnCitySN['cip']); $('.cy').text(returnCitySN['cname']); }) </script>