
html5技术/游戏
mft8899
这个作者很懒,什么都没留下…
展开
-
html5 > localStorage 本地存储
更多参考:http://blog.youkuaiyun.com/a727911438/article/details/54290931 在前端开发中,我们会常遇到要在两个甚至多个html之间通信,我们可以在url中添加参数,但是当要传递的数据量较大较多时呢,不妨试试html5 的localStorage吧。 1) 检测你的浏览器是否支持localS...原创 2014-12-16 11:16:21 · 123 阅读 · 0 评论 -
h5 -> 获得本地位置
<div id="location" style="display:none">未知区域</div><script>var x=document.getElementById("location");function getLocation(){ if (navigator.geolocation) { navi..原创 2016-02-26 09:45:04 · 131 阅读 · 0 评论 -
h5 -> 手机重力感应/摇一摇
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="vi原创 2017-08-17 15:38:28 · 351 阅读 · 0 评论