该函数检查浏览器是否支持地理定位。
This function checks to see if geolocation is supported on the browser.
因此在使用方法或者属性之前我们必须对浏览器的支持性做必要的检查。
Therefore we must first check if the browser supports the methods or properties we want to use.
也就是说,并不是去检查是否支持某一特定版本的IE浏览器,而是去检查在所用IE的版本中是否对所用到的每个调用进行支持。
This means that instead of checking if a specific version of IE is supported, it instead checks that the individual calls it USES are supported in the version of IE being used.
应用推荐