From ebc0835da44bcbb81e35c698c872e6c7b313ab06 Mon Sep 17 00:00:00 2001 From: zhw2590582 Date: Sat, 27 Apr 2019 20:30:12 +0800 Subject: [PATCH] Update github.js --- docs/assets/example/github.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/assets/example/github.js b/docs/assets/example/github.js index 2929d0a6d..8e75c7eab 100644 --- a/docs/assets/example/github.js +++ b/docs/assets/example/github.js @@ -21,6 +21,10 @@ var art = new Artplayer({ } else { var text = prompt('请输入:', '弹幕内容'); if (!text || !text.trim()) return; + if (text.length >= 20) { + art.notice.show('弹幕字数不能大于20字!!!'); + return; + } if (github.remaining <= 10) { art.notice.show('接口请求到达上限,请稍后再试!!!'); return;