File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-boot-demo-websocket-socketio/src/main/resources/static Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8484
8585 function sendBroadcast ( ) {
8686 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' )
8888 } ) . then ( ( response ) => {
8989 const { flag, message} = response . data ;
9090 if ( flag ) {
156156 }
157157
158158 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>" ;
160160 let element = $ ( "<div>" + currentTime + " " + message + "</div>" ) ;
161161 $ ( '#console' ) . prepend ( element ) ;
162162 }
@@ -179,4 +179,4 @@ <h1>spring-boot-demo-websocket-socketio</h1>
179179 < button type ="button " onClick ="sendDisconnect() " class ="btn "> 断开</ button >
180180</ form >
181181</ body >
182- </ html >
182+ </ html >
You can’t perform that action at this time.
0 commit comments