私はいくつかのhtmlテンプレートを生成するためにVueを使用していますが、私はhtmlの条件付きコメントを以下のコードに含める必要があります。Vue htmlコメント処理
var productTemplate = new Vue({
el: '#myApp'
});
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<div id="myApp">
<div class="some-content">
This is some content
</div>
<!--[if mso]>
<div>
this div will only be shown if the condition in the comment is true, in this case the condition is:
if (mso (microsoft office) == the html rendering engine) {
show the html code between the [if mso] and the [endif]
}
</div>
<![endif]-->
<div class="some-other-content">
This is some content
</div>
</div>
しかし、私は、ブラウザで私のhtmlページを開くと、条件付きコメントの間にHTMLコードは、私が実際にそれはそこにする必要があるにもかかわらず、完全に除去します。
これらのコメントをテンプレートビューに含めるにはどうすればよいですか?
「条件付きコメント」とは、表示/非表示を意味しますか? – C2486
両方のconditionall出力の詳細と例を共有しますか? – C2486
詳細を追加しました。 – Adriano