ajax循环遍历json数组输出到HTML中 10
jason数据如图一我想循环输出到页面box类下的ul里<divclass="box"><ulclass="lh"style="display:block;"><li><...
jason数据如图一我想循环输出到页面box类下的ul里<div class="box"> <ul class="lh" style="display:block;"> <li> <div class="p-img"><a href="#"><img src="img/4.jpg"></a></div> <div class="p-name"><a href="#">艾家纺全棉</a></div> <div class="p-price"><strong>¥399.00</strong> <div class="p-bt"><a class="reduce" >-</a><input type="text" value="1" class="num"/><a class="plus">+</a></div> </div> </li> <li> <div class="p-img ld"><a href="#"><img src="img/5.png"></a></div> <div class="p-name"><a href="#">优曼真丝提花奢华四件套</a></div> <div class="p-price"><strong>¥1299.00</strong> <div class="p-bt"><a class="reduce">-</a><input type="text" value="1" class="num"/><a class="plus">+</a></div> </div> </li> <li> <div class="p-img ld"><a href="#"><img src="img/6.jpg"></a></div> <div class="p-name"><a href="#">优曼真丝提花奢华四件套</a></div> <div class="p-price"><strong>¥1299.00</strong> <div class="p-bt"><a class="reduce" >-</a><input type="text" value="1" class="num"/><a class="plus">+</a></div> </div> </li> <li> <div class="p-img ld"><a href="#"><img src="img/7.jpg"></a></div> <div class="p-name"><a href="#">优曼真丝提花奢华四件套</a></div> <div class="p-price"><strong>¥1299.00</strong> <div class="p-bt"><a class="reduce" >-</a><input type="text" value="1" class="num"/><a class="plus">+</a></div> </div> </li> </ul></div>
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询