From 12eb6709d9a945ee58dd4dd24e71119b3326ba92 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Sat, 20 Nov 2021 21:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=80=E6=B3=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/handle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/handle.js b/js/handle.js index e6f5b5d..b619d0a 100644 --- a/js/handle.js +++ b/js/handle.js @@ -56,6 +56,8 @@ function receiveMessage(event) return false } + // custom.js中 每条弹幕的处理 放到了此处 + // -------------------- 每条弹幕处理 begin ----------------------- let random1 = uid in uidList ? 1 : 0 let random2 = Math.floor(Math.random() + 0.5) let dm = {text: data.danmaku, uid: data.uid, uname: data.uname, @@ -86,6 +88,8 @@ function receiveMessage(event) },3000) } + // -------------------- 每条弹幕处理 end ----------------------- + // event.source 就当前弹出页的来源页面 // event.data 是 "hello there!"