How to comment HTML tag attribute in HTML source code?

前端 未结 4 1362
粉色の甜心
粉色の甜心 2020-12-11 14:57

For example:

a link
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 15:21

    This cannot be done, but an attribute can be removed via the removeAttribute(attribute_name) javascript call.

    Alternatively, you can prefix the attributes you want removed with a namespace like click and remove the namespace via javascript.

提交回复
热议问题