报这个错误时,不是找不到自定义id的dom,是因为无法识别$【解决方案】layui.use(["jquery","layer"],function(){ var $=layer.jquery,layer=layui.layer; });