Return to Snippet

Revision: 77353
at September 15, 2019 18:19 by cerxx


Initial Code
function GetUserIP(){
	var ret_ip;
	$.ajaxSetup({async: false});
	$.get('//jsonip.com/', function(r){ 
		ret_ip = r.ip; 
	});
	console.log(ret_ip)
	return ret_ip;
}

Initial URL

                                

Initial Description
Get User IP By jQuery Ajax

Initial Title
Get User IP By jQuery Ajax

Initial Tags
jquery

Initial Language
JavaScript