基于html前端实现自动递增的模块



<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<script type="text/javascript" src="js/jquery-1.6.4.min.js" ></script>
<body>
<ul>
</ul>
</html>
<script>
$(function () {
            for (var i = 1; i < 8; i++) {
                $("ul").append("<li style='list-style-type:none; width: 100px;'>"+i+"ni"+i+"</li>");
            }
        })
</script>

猜你喜欢

转载自blog.csdn.net/m0_37942145/article/details/79084145