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
Tip: In MySQL, we often need to create and delete...
Table of contents 1. What are microtasks? 2. What...
Table of contents Preface: Ubuntu 18.04 changes a...
During normal project development, if the MySQL v...
*******************Introduction to HTML language (...
Pitfalls encountered during project deployment Wh...
I recently wanted to convert a website to https a...
This article describes how to boot the Linux syst...
Starting from MySQL 5.7, many security updates ha...
Table of contents 1. Background running jobs 2. U...
The default ssh port number of Linux servers is g...
This article shares with you the installation and...
Yesterday when I was implementing the function of...
1. Basic steps 1: Install yarn add vue-i18n Creat...
Preface In many management and office systems, tr...