mirror of https://github.com/layui/layui
update
parent
fc78ba0e47
commit
4b6ea9efb5
|
@ -55,7 +55,7 @@
|
||||||
// 异常提示
|
// 异常提示
|
||||||
var error = function(msg, type, isDebug) {
|
var error = function(msg, type, isDebug) {
|
||||||
type = type || 'log';
|
type = type || 'log';
|
||||||
msg = '[Layui]: ' + msg;
|
msg = '[Layui warn]: ' + msg;
|
||||||
|
|
||||||
if (window.console) {
|
if (window.console) {
|
||||||
console[type] ? console[type](msg) : console.log(msg);
|
console[type] ? console[type](msg) : console.log(msg);
|
||||||
|
|
Loading…
Reference in New Issue