1. scroll-view When using vertical scrolling, you need to give a fixed height and set the height through CSS; when using horizontal scrolling, you need to add Two-way data binding <template> <view> <scroll-view class="scroll" scroll-y="true" @scroll="scroll"> <view v-for="i in 100">{{i}}</view> </scroll-view> </view> </template> <script> export default { data() { return { flag:true } }, methods: { scroll(e){ console.log(e.detail); } } } </script> <style> .scroll{ height:400rpx; } </style> SummarizeThis article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM! You may also be interested in:
|
<<: Detailed explanation of the buffer pool in MySQL
>>: XHTML Getting Started Tutorial: Simple Web Page Creation
Table of contents 1. Introduction: 2. The first i...
need When querying a field, you need to give the ...
This article introduces Docker+Jenkins automatic ...
Secondly, the ranking of keywords is also related ...
In a project, you often need to use environment v...
The JD carousel was implemented using pure HTML a...
Table of contents JavaScript Objects 1. Definitio...
When using docker, you may find that the file can...
Table of contents 1. One-way value transfer betwe...
Overview Prometheus is an open source service mon...
This article shares the installation and configur...
# Installation daemon configuration for Redis on ...
System version [root@ ~]# cat /etc/redhat-release...
Frequently asked questions When you are new to ea...
1. Problem description Due to some reasons, the d...