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
This article uses an example to illustrate how to...
■ Website theme planning Be careful not to make yo...
Recently, I need to do a small verification exper...
Usage: date [options]... [+format] or: date [-u|-...
Table of contents Seconds_Behind_Master Original ...
Kubernetes supports three types of authentication...
Use JOIN instead of sub-queries MySQL supports SQ...
This article mainly introduces the implementation...
Table of contents 01 Common Faults 1 02 Common Fa...
This article example shares the specific code of ...
This article uses examples to describe the add, d...
Copy table structure and its data The following s...
Preface This is an investigation caused by the ex...
<br />With the increase of bandwidth, there ...
Recently, when I was working on a front-end vue.j...