02 2021 档案

摘要:var j = 0 for(let i =0;i<2;i++,j++){ setTimeout(function(){ console.log(i,j); },1000) } // 0 2 // 1 2 1、因为let有自己的作用域块,所以在for循环表达式中使用let其实就等价于在代码块中使用le 阅读全文
posted @ 2021-02-22 17:01 xujing123 阅读(310) 评论(0) 推荐(0)
摘要:问题1:唤起底部输入框聊天内容被顶起 解决办法 使用uniapp textarea 自带的:adjust-position="false" 问题2:底部textarea 键盘被调起之后 输入框留在底部 解决办法: // 监听键盘弹起高度 KeyboardHeight uni.onKeyboardHe 阅读全文
posted @ 2021-02-19 16:48 xujing123 阅读(4938) 评论(0) 推荐(0)