![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
qidaneix
望各路大神多多关照!
展开
-
使用腾讯地图前端定位组件提升定位精确度
最近接了个需求,要在前端页面实现用户终端地理位置定位的功能,直接就想到了使用 HTML5 提供的 Geolocation API 来实现:navigator.geolocation.getCurrentPosition( ({ coords: { latitude: lat, longitude: lng } }) => { document.getElementById("h5-position").innerHTML = ` latitude: ${l原创 2021-01-24 18:04:50 · 3411 阅读 · 2 评论 -
解决IE浏览器再重复请求请求内容相同的情况下调用本地缓存的问题!
解决办法:再每次的请求内容上传的参数中加入随机数!以保证每次的请求内容不想同!由JavaScript实现//增加随机数,用于避免IE缓存var random_number = Math.floor(Math.random() * ( 1000 + 1));原创 2015-05-25 21:50:56 · 4229 阅读 · 0 评论