File tree 1 file changed +3
-3
lines changed
spring-boot-demo-websocket-socketio/src/main/resources/static
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 84
84
85
85
function sendBroadcast ( ) {
86
86
axios . post ( '/demo/send/broadcast' , {
87
- message : '系统广播通知: 当前时间 ' + moment ( ) . format ( 'YYYY-MM-dd HH:mm:ss.SSS' )
87
+ message : '系统广播通知: 当前时间 ' + moment ( ) . format ( 'YYYY-MM-DD HH:mm:ss.SSS' )
88
88
} ) . then ( ( response ) => {
89
89
const { flag, message} = response . data ;
90
90
if ( flag ) {
156
156
}
157
157
158
158
function output ( message ) {
159
- let currentTime = "<span class='time'>" + moment ( ) . format ( 'YYYY-MM-dd HH:mm:ss.SSS' ) + "</span>" ;
159
+ let currentTime = "<span class='time'>" + moment ( ) . format ( 'YYYY-MM-DD HH:mm:ss.SSS' ) + "</span>" ;
160
160
let element = $ ( "<div>" + currentTime + " " + message + "</div>" ) ;
161
161
$ ( '#console' ) . prepend ( element ) ;
162
162
}
@@ -179,4 +179,4 @@ <h1>spring-boot-demo-websocket-socketio</h1>
179
179
< button type ="button " onClick ="sendDisconnect() " class ="btn "> 断开</ button >
180
180
</ form >
181
181
</ body >
182
- </ html >
182
+ </ html >
You can’t perform that action at this time.
0 commit comments