01-直角三角形

答案

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
    </head>
    <body>
        <div class='triangle'></div>

        <script>
            var triangle = document.querySelector('.triangle');
            // 补全代码
            triangle.innerHTML='*<br>**<br>***<br>'
        </script>
    </body>
</html>
posted @ 2023-03-17 19:24  useeee  阅读(12)  评论(0编辑  收藏  举报