<ins id="di738"></ins>
<xmp id="di738"><form id="di738"><button id="di738"></button></form>
<button id="di738"></button>
<xmp id="di738"><button id="di738"></button><form id="di738"></form>
<button id="di738"></button>
<button id="di738"></button>
<form id="di738"></form>
<xmp id="di738">
<form id="di738"></form><form id="di738"></form><xmp id="di738"><form id="di738"></form>
<xmp id="di738"><form id="di738"></form><xmp id="di738"><xmp id="di738"><form id="di738"></form>
<xmp id="di738">
<xmp id="di738"><xmp id="di738"><form id="di738"><button id="di738"></button></form><xmp id="di738"><xmp id="di738"><form id="di738"></form>
<xmp id="di738"><form id="di738"><form id="di738"></form></form>
<form id="di738"></form>
<xmp id="di738"><ins id="di738"></ins>
<xmp id="di738"><form id="di738"><form id="di738"></form></form>
<xmp id="di738">
<form id="di738"></form><ins id="di738"></ins><xmp id="di738"><form id="di738"><form id="di738"></form></form><xmp id="di738"><form id="di738"></form><xmp id="di738"><form id="di738"><form id="di738"></form></form>

關于layui的form里的元素進行動態生成,驗證失效解決方法

分類:靖凱學堂     發布時間:2018-09-12 11:45:21
分享到 :

這問題和使用layTpl動態生成頁面問題類似,詳細進入https://blog.csdn.net/sqlquan/article/details/82432513


form有點不同就是需要把需要執行form.render()而不是element.render();進行渲染

var data = jsonData;
var getTpl = dialogTemplate.innerHTML,
    view = document.getElementById('dialogContent');
laytpl(getTpl).render(data, function(html) {
view.innerHTML = html;
});

form.render();

QQ圖片20180912114252.png