diff --git a/frontend/views/car/info.php b/frontend/views/car/info.php index dcdadcf..c1802d1 100644 --- a/frontend/views/car/info.php +++ b/frontend/views/car/info.php @@ -312,7 +312,7 @@ use \common\libs\MyLib; } } else { // 浏览器不支持 WebSocket - alert("您的浏览器不支持 WebSocket!"); + parent.layer.msg("您的浏览器不支持 WebSocket!"); } } @@ -382,7 +382,7 @@ use \common\libs\MyLib; ws.send(val); console.log("数据已发送"); } else { - alert(obj.msg); + parent.layer.msg(obj.msg); } },'json');