Javascript 如何允许VisualStudio在html编辑器中验证{$Something}?
在Visual Studio HTML编辑器aspx webform/mvc中,我有一些代码:Javascript 如何允许VisualStudio在html编辑器中验证{$Something}?,javascript,jquery,visual-studio,intellisense,jtemplates,Javascript,Jquery,Visual Studio,Intellisense,Jtemplates,在Visual Studio HTML编辑器aspx webform/mvc中,我有一些代码: <tr id="${PropertyKey}"> <td title="DataModeHtml"> <input type="checkbox" ${DataModeHtml} value="${DataModeKey}"/> </td> <td title="PropertyCode"> ${Property
<tr id="${PropertyKey}">
<td title="DataModeHtml">
<input type="checkbox" ${DataModeHtml} value="${DataModeKey}"/>
</td>
<td title="PropertyCode">
${PropertyCode}
</td>
</tr>
我使用jTemplates将${DataModeHtml}呈现为[checked='checked']或[string.Empty]。
一切正常,但编辑器错误列表中的Visual Studio警告:验证XHTML 1.0过渡:属性“DataModeHtml”不是元素“input”的有效属性
如何:在visual studio中设置、创建附加组件或向xsd xml IntelliSense VS添加某些内容来解决此问题?需要在IntelliSense文件中声明自定义标记 有关自定义标记,请参阅并向下滚动至IntelliSense