https 服务器访问
IOS 访问 http 不通
安卓访问 http 通
Fis3
执行下面命令不生成新文件:
1
| fis3 release prod -d ../dist
|
解决办法:清除缓存(数字随便写)
1
| fis3 release prod1234 -d ../dist
|
Fiddler
更改 Host 却不代理
解决办法:重启 fiddler
IOS10 软键盘遮挡底部输入框问题
1 2 3 4 5 6
| var interval = setInterval(function() { document.body.scrollTop = document.body.scrollHeight; }, 300);
clearInterval(interval);
|
相关 API
1 2
| target.scrollIntoView(); window.scrollTo(0, 10000);
|
参考文章
荣耀 6,输入框被滚动隐藏
复制了一个输入框,隐藏在了最顶部
荣耀 6,vue-router 懒加载问题
只有一个不用懒加载就可以了,否则都不能显示
61 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| import Classify from '../components/ZZFeedBack/Classify/Classify.vue' routes: [ { path: '/classify', name: 'feedback-classify', component:Classify }, { path: '/upload', name: 'feedback-upload', component(resolve){ require(['../components/ZZFeedBack/UpLoad/UpLoad.vue'], resolve); } } ]
|
移动端不执行的时候通过 try 来捕获问题
1 2 3 4 5
| try { } catch (e) { alert(e); }
|
无法监听返回键
关闭页面事件
当框体变化时 0.5px 会有的边消失
解决:不让框体变化
mint-ui 导致 0.5px 不显示
通过设置 translate 来纠正
无法检测到是否是最后位置
…全文
上划滚动要重新定位才不会继续加载
微信分享出现的问题
微信开发,分享部分出现的问题
关于微信分享中的 wx.ready()
scroll(1)
安卓和 ios 字居中问题
line-height:normal
ios 取不到 cookie
客户端获取 cookie
关闭页面事件
1 2 3 4 5 6 7 8 9 10
| if (OS_TYPE().isiOS) { window.onpagehide = () => { this.beforeUnloadFun(); }; } else { window.onbeforeunload = () => { this.beforeUnloadFun(); }; }
|
上传功能
三星 note3 webview 不支持 input type=”file” 上传功能
ios11 以上第一次调起输入法挡住弹窗问题
让整个框体的 bottom 上浮–需要借助客户端方法知道键盘高度
harmony1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| setKeyboardFrameChangeCallback () { if (ZZ_V(4.3) != -1 && OS_TYPE().isiOS && IOS_V(10) != -1) { setKeyboardFrameChangeCallback((res) => { if (res.code === '0') { if (res.kbState === '1') { document.querySelector('.worth-vote').style.bottom = res.height + 'px'; this.intervalScroll = setInterval(() => { document.body.scrollTop = document.body.scrollHeight; }, 200); } else { document.querySelector('.worth-vote').style.bottom = 0 + 'px'; clearInterval(this.intervalScroll); } } }); } },
|