Posted in Javascript onNovember 18, 2013
<canvas id="myCanvas" width=”300” height=”200” style="border:1px solid #c3c3c3;"> Your browser does not support the canvas element. </canvas> <script type="text/javascript"> var myCanvas = document.getElementById("myCanvas"); if (!myCanvas.getContext) { alert("你的浏览器不支持Canvas."); } else { alert("你的浏览器支持Canvas."); } </script>
js判读浏览器是否支持html5的canvas的代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@