0
で挿入HTMLのための一口を使用して、htmlファイルの内容に変数this._template = "include:'Views/Dialog.html'";
を置き換える私が使用一口をしたい私は2つのファイルを持っているjsの
(function (Controllers) {
var DialogElement = (function() {
function DialogElement() {
this._template = "include:'Views/Dialog.html'";
}
return DialogElement;
}());
Controllers.DialogElement = DialogElement;
})(Controllers));
とhtml
<div>Simple dialog!</div>
をJS。
ので、取得するには:
function DialogElement() {
this._template = "<div>Simple dialog!</div>";
}
は、これに適したプラグインがあることができますか?