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!"