将Jquery切换转换为mootools
我需要将jquery脚本转换为mootools 1.2.5脚本将Jquery切换转换为mootools,jquery,mootools,Jquery,Mootools,我需要将jquery脚本转换为mootools 1.2.5脚本 $(document).ready(function() { $('ul li').click(function(e) { e.preventDefault(); $(this).children('ul').slideToggle(); return false; }).children("ul").hide(); }); 我使用的购物车软件仅适用于mootools。 JQ
$(document).ready(function()
{
$('ul li').click(function(e) {
e.preventDefault();
$(this).children('ul').slideToggle();
return false;
}).children("ul").hide();
});
我使用的购物车软件仅适用于mootools。
JQuery对工具产生了负面影响
无冲突
不工作
我找到了这个
但是这个我也不能用,因为
display:none代码>&显示:块几乎锚定在整个css的每一行中,更改整个css太疯狂了。我正确理解您想要切换每个级别的可见性?
试试这个javascript():
$$('#main li').each(function(obj, index) {
obj.addEvent('click', function(e) {
this.getFirst('ul').toggleClass('show');
this.addClass('show');
e.stopPropagation();
});
});