为什么这个判断不生效呢?我是想判断这个$(".a") 宽度是否为100px,是不是哪里写错了?
$(function(){ $(".a").animate({width:"100px"},3000); if($(".a").css("width") == 100){ console.log("100"); } })
阿晨1998
相关分类