外星人
来自外星的外星人
外星人2
来自外星的外星人2
外星人3
来自外星的外星人3
问下用jQuery怎么获取每个wrap下面img的src值,h6的文本,p的文本?
并返回成这样的结构
[{pos: ../img/head1.jpg, name: 外星人, content:来自外星的外星人},{pos: ../img/head2.jpg, name: 外星人2, content:来自外星的外星人2},{pos: ../img/head3.jpg, name: 外星人3, content:来自外星的外星人3}]
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
自己可以参考手册多练练~
题外话,这样的东西用模板或者Vue之类的框架要简单很多 \(^o^)/~