如何拷贝网页中动态生成的html

路丶那么遥远
  • 119

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script type="text/javascript" src="static/library/jquery/3.6.0/jquery.min.js"></script>
    </head>
    <body>
        <div id="test">

        </div>

        <script type="text/javascript">
            const data = ["AAA", "BBB", "CCC"]
            data.forEach((el)=>{
                $("#test").append(`
                    <h1>${el}</h1>
                `)
            })
        </script>
    </body>
</html>

image.png

回复
阅读 802
宣传栏