Browser helper function 最后更新时间: 2026年07月01日
This article introduces the browser helper function AMap.Browser in the JS API. This function can help developers determine the browser, system version, and some rendering features of the browser, assisting developers in making some common browser feature judgments.
//Browser UA information
var ua = AMap.Browser.ua;
//Browser platform type
var plat = AMap.Browser.plat;
//Whether the browser supports Canvas
var canvas = AMap.Browser.isCanvas;
//Does the browser support WebGL
var isWebGL = AMap.Browser.isWebGL;
