Disabled not working

前端 未结 3 1204
臣服心动
臣服心动 2021-02-20 16:00
  1. Not working :
    • [disabled] = true ,
    • [disabled] = \"isDisabled\" -----ts > ( isDisabled=true)
    • basic html disabler al
3条回答
  •  没有蜡笔的小新
    2021-02-20 16:24

    When using attr.disabled, you have to supply the literal value, or omit the attribute altogether. Bear in mind that the disabled attribute in HTML disables an element that supports the attribute simply by being present.

    
    

    Both of the following in HTML should result in an input being disabled...

    
    
    

提交回复
热议问题