开发者

jQuery: how do I convert this to 1.3.2?

d = $j("#sort_sections > li").map(function(index, element){
    return [[element.id,
        $j(element).find("li.content").map(function(subindex, subelement){
            return subeleme开发者_开发知识库nt.id;
        }).toArray()]];
}).toArray();

It currently works in 1.4.2, but I need it to work in 1.3.2 =\


Replace .toArray() with .get().

They do the same thing, but .toArray() was added in jQuery 1.4.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜