HTML5
小夏与阿田
这个作者很懒,什么都没留下…
展开
-
(二)HTML5之地理定位
HTMl5之地理定位Geolocation1、首先判断当前浏览器是否支持地理定位if(navigator.geolocation){ //浏览器支持地理定位}else{ alert('当前浏览器不支持地理定位');}2、获取当前位置getCurrentPosition(参数一,参数二,参数三)if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(showPosition,showError)原创 2020-07-07 22:50:49 · 175 阅读 · 0 评论 -
(一)HTML5之拖放(drag and drop)
HTML5新增了哪些新特性:(1)语义化标签 header footer nav article aside等;(2)拖放(drag and drop)API;(3)视频、音频(video audio)API;(4)地理定位(Geolocation)API;(5)应用缓存;(6)存储(localStorage sessionStorage);(7)画布canvas;...原创 2020-04-10 16:05:13 · 425 阅读 · 1 评论