1、layer插件
示例:if(result==''){ $.layer({ shade : [0.4 , '#000' , false], area : ['auto','auto'], title : false, closeBtn:false, time : 1, dialog : {msg:'请输入***,type : 3} }); return false; }
示例:layer.open({ type: 1, area: ['600px', '360px'], shade: false, title: false, skin: 'yourclass', content: });示例:layer.msg("你输入的身份证长度或格式错误",1,3);
2、$this->success();
示例:$this->success('新增成功!',U('Index/index'));
$this->error('新增失败!',U('Index/index'));