小编Amr*_*rik的帖子

混合Prototype和jQuery

我如何混合jQuery和Prototype并使用两者的优点?

var htmlret = new Element('div');
htmlret = htmlret.update(response.responseText);


// There may be many .SOME-CLASS so use `invoke` to iterate through them
// $$('.clsProPicture').invoke('update', html.select('.clsProPicture').first());

htmlret = htmlret.down("div#dvltrProfilePic");
//alert(htmlret);
$('dvltrProfilePic').update();
$('dvltrProfilePic').update(htmlret);
Run Code Online (Sandbox Code Playgroud)

一些jQuery方法等

jquery prototype

2
推荐指数
1
解决办法
144
查看次数

标签 统计

jquery ×1

prototype ×1