current position:Home>Getsnapshotbeforeupdate example of react

Getsnapshotbeforeupdate example of react

2022-04-29 05:53:52Nameless`

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <style>

        .list{

            width:200px;

            height:150px;

            background-color: skyblue;

            overflow: auto;

        }

        .news{

            height: 30px;

        }

    </style>

</head>

<body>

    <div class="list">

        <div class="news"> Journalism 5</div>

        <div class="news"> Journalism 4</div>

        <div class="news"> Journalism 3</div>

        <div class="news"> Journalism 2</div>

        <div class="news"> Journalism 1</div>

    </div>

</body>

</html>

=============

Copy many lines :alt+shift+PgDn

Edit multiple lines at the same time :shift+alt Lengthen the cursor vertically while editing

Want the first line to show news 5, Console input

Console height :

copyright notice
author[Nameless`],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/116/202204261023315077.html

Random recommended