js弹出后台传来的msg

function showErrorMsg(msg) {

layer.open({
content: msg,
time: 2
});

}

原文地址:https://www.cnblogs.com/ydam/p/9209200.html