1.设计图:
bug:
ios9.3 点击切换位置,白屏:
切换的动画引起页面的奔溃,将动画去掉
软键盘遮挡:
解决方案:
focusFun(event){
var target = event.currentTarget; setTimeout(()=>{
if (window.scrollTo) {
document.body.style.height = ‘1200px’;
var screenHeight = document.documentElement.clientHeight || document.body.clientHeight; window.scrollTo(0,this.getTop(target) - screenHeight/2 + 100); }
},50);},
blurFun(){
setTimeout(function () {
document.body.style.height = ‘’;
},50)
}
3.android 手机图片长按不能保存:
将图片上传到oss上,返回url,生成图片
safari ios 合成的base64图片在canvas.toDataURL(‘image/png’)的时候报错 the operation is insecure
解决办法:
将 crossorigin=”anonymous” 属性提前到src属性前面可以了