导航栏

随笔分类 -  编程遇到的问题及其解决

摘要:问题 提示变量没有被声明 onLoad:(option)=>{ 不能使用this } 原因 因为onLoad不是方法中的子方法,而箭头函数中的this会变为父级的this,然而没有父级所以就会显示undefined 解决 onLoad:function(option){ } 阅读全文
posted @ 2021-02-18 21:08 RickZ 阅读(111) 评论(0) 推荐(0)
摘要:1.chrome 监听touch类事件报错:无法被动侦听事件preventDefault 报错信息 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as 阅读全文
posted @ 2021-02-01 00:20 RickZ 阅读(66) 评论(0) 推荐(0)