1. If it is ajax nested page, make sure that only the outermost page introduces layui.css and layui.js
Remember not reintroduced inner page
2.
layui.use(['form', 'upload'], function(){ var form = layui.form; form.render (); // Add to this a });
1