$(...)[0].attr is not a function问题
Posted wugai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了$(...)[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") //正确用法
以上是关于$(...)[0].attr is not a function问题的主要内容,如果未能解决你的问题,请参考以下文章