$(...)[0].attr is not a function问题

let area = $(".textarea").not(this);
area[i].attr("disabled","true")     //这样获取的是DOM对象无法使用jq的attr
area.eq(i).attr("disabled","true")  //正确用法

猜你喜欢

转载自www.cnblogs.com/wugai/p/11456875.html