Is there a nice way I can get rid of this in visual studio 10 when using knockoutjs? It just pollutes the warnings.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes you can do this in VS 2010 SP1 and VS 11 Developer Preview
Tools > Options
Select:
Text Editing > HTML > Validation
And select XHTML5
or HTML5
from the drop down list
回答2:
After doing what Darbio said above, I also add this <!DOCTYPE/>
on top of the page.