gpt4 book ai didi

javascript - 想要在同一文件夹中的其他 html 页面中显示一个 html 页面的图像数

转载 作者:可可西里 更新时间:2023-11-01 12:57:13 25 4
gpt4 key购买 nike

<分区>

如何获取page1中的图片在page2中显示的数量?

第 1 页:

<!doctype html>
<html>
<head>
<title>images count</title>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script> <script>
$(document).ready(function(){
$("#count").html($(".galery img").length);
});
</script>
</head>
<body>
<div id="box">
<p style="padding: 20px;">Images Count:<span id="count"></span></p>
</div>
<div class="galery">
<img src="download.png">
<img src="download.png">
<img src="download.png">
<img src="download.png">
</div>
</body>
</html>

第 2 页:

<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
Page1 Images count:<span id="newcount"></span>
</body>
</html>

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com