引入layui后报错:layer is not defined

孟泽宇
2023-12-01
//(若想要加载多个组件,如:时间,表单可用[])
layui.use(['layer','laydate','form'],function(){
	var layer = layui.layer;  //layer初始化
	layer.msg('hello');  //此时便可成功
})
 类似资料: