jq 项目uncaught exception type property can’t be changed

使用代码$("#pwd").attr("type","password")时出现上面的错误。this 猜想是该版本jQuery不容许修改控件type属性,使用原生js语句能够解决这个问题。word if ($(this).attr("type") == "text") {原生js $(this)[0].type = "password";错误 }版本
相关文章
相关标签/搜索