用js 不行用jq可以;
var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='+Math.random();
$.getJSON(url, function(data){
var p = ".";
var a = (data.Ip).replace(new RegExp(p), "")
;
if(a.substring(0,1)) = 10){
alert("A funtion");
}
if(a.substring(0,1) = 112{
alert("B funtion");
}
});