Skip to content

Commit b3db686

Browse files
committed
cdn
1 parent 3ee8ea9 commit b3db686

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

socket/src/main/resources/public/chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<base href="localhost://localhost:8081/">
55
<title>在线聊天</title>
66
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">
7-
<script src="http://static.xiaomo.info/jquery.js"></script>
7+
<script src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script>
88
</head>
99
<style>
1010
.fix-bottom {

socket/src/main/resources/public/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="ie=edge">
88
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">
9-
<script src="http://static.xiaomo.info/jquery.js"></script>
9+
<script src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script>
1010
<title>登录</title>
1111
</head>
1212
<body>
@@ -42,6 +42,10 @@
4242
<script>
4343
function login() {
4444
var username = $("#userName").val();
45+
if (username === ""){
46+
alert("请输入一个昵称");
47+
return;
48+
}
4549
window.location.href = "http://localhost:8081/chat.html?username=" + username;
4650
}
4751
function keyEnter(event) {

0 commit comments

Comments
 (0)