个例子电商平台对商品的评价
评价完成索要展示的数据
评价内容
上传多张的图片
注:这里我们去到的数据是如下图
这里写图片描述
我们遍历数据同时,还要对每条数据里面的imgs进行遍历,代码如下:
后台管理
img{
width: 50px;
height: 50px;
}
好评
中评
差评
asdasd
11
("span").click(function () {
var pj =(this).attr("pj") (".aa").html("") .ajax({ url:"__CONTROLLER__/ajaxchuli", data:{pj:pj}, type:"POST", dataType:"JSON", success: function(data){ console.log(data) for (var i = 0; i