問題タブ [html5-template]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - td、tr、または th を格納する DocumentFragment を作成できませんか?
DocumentFragments に tr、th、または td タグを含めることは可能ですか?
私がこれを行う場合:
の出力が得られます[table]
。
私がこれを行う場合:
[]
!?!?の出力が得られます。
私がこれを行う場合:
[p]
??!?!?!??!?!??!を取得します。
そして最後に、これを行うと:
わかった[span]
- td はどこへ行った??!
ここの矛盾がわかりません。ドキュメントフラグメントが特定の要素のみを保持することは可能ですか? 私がやりたいことは、上記の 2 番目と同様のことを行い、 を使用して td を取得することquerySelector
です。
ありがとう
angularjs-directive - html5 テンプレートでカスタム angularjs ディレクティブを使用する方法
html5 テンプレートとカスタム angularjs ディレクティブを作成しました。このディレクティブを h5 テンプレートで使用したいと考えています。しかし、ディレクティブは機能しません。このような私のコード、
html:
ディレクティブは次のようになります。
}]);
このディレクティブは機能しません。このコードを実行しても、「my-custom-directive」は入力要素に置き換えられません。