Giter Club home page Giter Club logo

barrage's Introduction

barrage

使用前必须设置你的 弹幕墙id 和 弹幕的行数 并 初始化弹幕墙,然后调用 barrageWall.upWall("用户头像url","用户昵称","用户输入的内容")。

前言:

请尽量少的使用js去处理css样式!

尤其是当用户量大时,页面的性能的尤为重要

所以,请将你需要的各种动效交个css去实现

请注意页面重绘带来的性能影响

注意:

1,一定要限制用户输入的文字长度,尽量避免用户输入的内容长度超过屏幕的宽度

2,如果不需要用户的头像和id,可以在js中去掉 elem 的img标签和用户名,本人因之前项目需要,所以就保留了

3,实际使用时,最少应该加上 特殊字符替换

barrage's People

Contributors

805808786 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.