let main = document.createElement("div"),
togBtn = document.createElement("button"),
divOne = document.createElement("div"),
divTwo = document.createElement("div"),
divThree = document.createElement("div"),
blockQ = document.createElement("blockquote"),
head2 = document.createElement("h2"),
hr = document.createElement("hr"),
textOne = document.createElement("p"),
textTwo = document.createElement("p"),
delBtn = document.createElement("button")
有没有更好的方法来获得这个结果。 用EJS6或jQuery可能吗? 这是最终结果。他们中的一些人是彼此的孩子
<div class="classes" data-class="XII">
<button onclick="tog('XII')" class="btn btn-block text-mono btn-outline-secondary">XII</button>
<div id="XII" style="display: none;">
<div class="card mb-3 text-center bg-secondary text-light border-0">
<div class="card-body">
<blockquote class="card-blockquote">
<h2 class="display-4">XII</h2>
<hr class="my-4">
<p class="lead">XII has 5 days per week and will study 6 subjects per day</p>
<p>During the week they will study: Mathematics, Physics, Biology, etc.</p>
<button class="btn btn-shadow text-mono btn-danger">Delete</button>
</blockquote>
</div>
</div>
</div>
</div>
答案 0 :(得分:1)
您可以使用模板文字:
[Numero ID Contacto]