lvcx007's recent timeline updates
lvcx007

lvcx007

V2EX member #117507, joined on 2015-05-18 16:28:42 +08:00
lvcx007's recent replies
@cxe2v 内容是调用的表单数据,不同的,这个问题,我根据你的代码又重新修改了一下,现在好了,谢谢了
@cxe2v 首先,非常感谢你,我根据你提供的代码修改了一下,但又遇到一个问题,那就是当填写第二行数据的时候,图片和标题信息都覆盖了前一行,如果填写第三行,那第一行和第二行的数据又被覆盖了
代码如下:
$(".item").each(function(index,element) {
var row = 'row'+clickRow; //当前位于第几行
if( data[row]){ //如果这一行有数据存在
if (index == 0) {
$(element).find(".pic").html(data[row].pic);
$(element).find(".title").html(data[row].title);
};
if (index == 1) {
$(element).find(".pic").html(data[row].pic);
$(element).find(".title").html(data[row].title);
};
};
});

请问有什么方法可以解决,谢谢了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2647 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 11:54 · PVG 19:54 · LAX 04:54 · JFK 07:54
♥ Do have faith in what you're doing.