关于uniapp的一些坑记录

最近投身一家外包公司,要求做uniapp项目记录一下坑

1.在uniapp中 动态绑定input 也就是使用@input 时绑定函数中 需延迟执行代码才管用,如:

	setTimeout(() => {
    
      
		this.user.Password = this.user.Password.replace(/[^0-9a-zA-Z]/g, ''); 
	}, 10)

2.使用正则时,不能带有箭头符号,在手机上识别失败

< >

3.在使用scroll-view时,只有在其内部定义了一个固定高度的view 才会触发 触底事件 @scrolltolower
例如:

<scroll-view scroll-y="true" @scrolltolower="setDb(i)">
	<view style="height: 93vh;">

猜你喜欢

转载自blog.csdn.net/weixin_43311271/article/details/104959691