Home  >  Article  >  Web Front-end  >  js获取IP地址的方法小结_javascript技巧

js获取IP地址的方法小结_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:42:381802browse

1,js取得IP地址的方法一

 

2,js取得IP地址的方法二

  
 

3,js取得ip地址的方法三,腾讯IP,转UTF-8:


$(document).ready(function() { 
  $("#ip").val(IPData[0]); 
  $("#add").val(IPData[2]); 
})
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn