当我使用 W3C 验证器验证我的页面时,我在 Vue 的事件和绑定(bind)语法中遇到了这个错误:
Error: Attribute
v-on:click
not allowed on elementdiv
at this point.
有办法解决这个问题吗?
最佳答案
他们最好支持使用 data-*
attributes ,例如,data-v-on:click
,但他们似乎没有。
查看他们的问题 Why not using HTML5 data-* attributes .
似乎有可能overwrite the used prefix , 但是这个选项 seems to have been removed .
关于html - W3C 验证和 Vue 的 HTML 绑定(bind)语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39498365/