- 博客(9)
- 收藏
- 关注
原创 谷歌地图 获取手机四个角距离中心的距离
//获取手机左上角的经纬度var maxX = map.getBounds().getNorthEast().lng(); var maxY = map.getBounds().getNorthEast().lat();//获取中心点的经纬度newlat = JSON.stringify(map.getCenter()).split(',')[0].split(':')[1]newlog = JSON.stringify(map.getCenter()).split(',')[1].spli...
2022-01-18 13:55:25
481
原创 overflow-y: scroll; 动态赋值时无法回到顶部
<div class="notice-con" id="notice-con">动态赋值内容</div>.notice-con { margin: 14px 30px; height: 64px; overflow-y: scroll;}解决方案:document.getElementById("notice-con").scrollTop = 0...
2022-01-17 17:02:40
826
原创 接入谷歌地图api
1.通过webview引入map.html<web-view :src="url"></web-view>data() { return { url: "", } },this.url = "/hybrid/html/map.html"2.map.html//首先接入谷歌地图api<script src="https://maps.googleapis.com...
2021-11-24 15:01:43
5041
原创 uniapp H5与vue之间存取缓存
1.vue存与h5取vue:uni.setStorageSync('isClick', true)h5:JSON.parse(plus.storage.getItem('isClick')).data2.h5存与vue取vue:uni.getStorageSync('isClick')h5:plus.storage.setItem('isClick',""+false)注:plus.storage.setItem()不能直接存false,得加上""...
2021-11-23 10:57:46
1941
原创 ios 弹起软键盘position: fixed;失效
<view class="stores-top"> <input type="text" placeholder-class="placeholder" v-model="shop" placeholder="店舗名または住所を入力してください" /></view>.stores-top { width: 100%; height: 88upx; position: fixed;...
2021-11-19 13:52:20
2207
原创 ios的input默认文字比android颜色浅
原代码如下:<input id="myInput" type="text" placeholder-class="phcolor" disabled="true" placeholder="aaaa" />.phcolor { color: #999999; font-size: 12px; }原因:input里加了disabled属性导致ios中颜色变浅解决:#myInput inp...
2021-11-02 15:35:09
1506
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1