我使用了带有元素的jquery切换函数。但每次我加载页面时,元素都会弹出并消失。
我的代码如下:
$(document).ready(function(){
jQuery("#button").toggle(function(){
jQuery("#feedback_form").animate({right:"0px"});
},
function(){
jQuery("#feedback_form").animate({right:"-362px"});
return false;
}
); //toggle
});按钮元素出现和消失。我不能点击它。
https://stackoverflow.com/questions/38327856
复制相似问题