使用layui出现Uncaught ReferenceError: layui is not defined问题解决: 第一排查引入的js路径是否正确 第二如果是form未定义,检查你的form里面的class是否设置了class="layui-form",这样才是真正声明一个form表单