function isSupportSVG() { var SVG_NS = 'http://www.w3.org/2000/svg'; return !!document.createElementNS &&!!document.createElementNS(SVG_NS, 'svg').createSVGRect; } // 测试console.log(isSupportSVG());
文章转载于:https://www.jianshu.com/p/5673b62206e8
原著是一个有趣的人,若有侵权,请通知删除
还没有人抢沙发呢~