js 库

Popper

解决绝对定位中的相对定位问题, 对于悬浮提示框等用途非常有用.

        let a = $($('.ly-button')[0]);
        const TIP = $($('#tip')[0]);
        a.on('mouseover', event => {
            new Popper(event.target, $('#tip')[0], { // v1.+版本
                placement: 'right',
            });
            TIP.show();
        });
        a.on('mouseleave', event => {
            TIP.hide();
        });

sea.js

国产的模块框架

两大常用方法: define()seajs.use().

  • define((require, exports, module) => {}, ?, ?) // 3个参数,未知后两个用途
    定义一个模块, 可以在其它模块的定义中通过回调参数require导入其它依赖模块.
    exports.field = valuemodule.export = {}两种导出模块的方式.

其它

  • seajs.require()
    可用于在非define中请求模块, 没有回调, 常配合官方模块:
    模块 seajs-text 加载html模板等文本, 直接赋值给变量
    模块 seajs-css 加载css文件

bootstrap

前端界面组件库

@中文文档 https://v4.bootcss.com/docs/getting-started/introduction/

backbone

MVC 框架, 依赖 Underscore.js 或其超集 Lodash

@中文教程 https://javascript.ruanyifeng.com/advanced/backbonejs.html
@中文文档 https://www.html.cn/doc/backbone/
@see https://www.cnblogs.com/newyorker/archive/2013/03/09/2947303.html

React-pdf

使用React生成PDF文件
Github: https://github.com/diegomura/react-pdf

END

原文地址:https://www.cnblogs.com/develon/p/13293437.html