W3C验证和Vue的HTML绑定语法 [英] W3C Validation and Vue's HTML binding syntax
本文介绍了W3C验证和Vue的HTML绑定语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用W3C验证器验证页面时,我收到了Vue事件和绑定语法的错误消息:
When I validate my page with the W3C validator, I get this error with Vue's event and binding syntax:
错误:目前,元素
div
上不允许使用属性v-on:click
.
有没有办法解决这个问题?
Is there a way to fix this?
推荐答案
They would ideally support the use of data-*
attributes, e.g., data-v-on:click
, but it seems they don’t.
请参阅他们的问题为什么不使用HTML5数据-*属性.
It seems that it was possible to overwrite the used prefix, but this option seems to have been removed.
这篇关于W3C验证和Vue的HTML绑定语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文