diff --git a/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html b/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html index 1e6db31..a2d4492 100644 --- a/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html +++ b/spring-boot-demo-websocket-socketio/src/main/resources/static/index.html @@ -84,7 +84,7 @@ function sendBroadcast() { axios.post('/demo/send/broadcast', { - message: '系统广播通知: 当前时间 ' + moment().format('YYYY-MM-dd HH:mm:ss.SSS') + message: '系统广播通知: 当前时间 ' + moment().format('YYYY-MM-DD HH:mm:ss.SSS') }).then((response) => { const {flag, message} = response.data; if (flag) { @@ -156,7 +156,7 @@ } function output(message) { - let currentTime = "" + moment().format('YYYY-MM-dd HH:mm:ss.SSS') + ""; + let currentTime = "" + moment().format('YYYY-MM-DD HH:mm:ss.SSS') + ""; let element = $("
" + currentTime + " " + message + "
"); $('#console').prepend(element); } @@ -179,4 +179,4 @@ - \ No newline at end of file +