! function (t, i) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : t.BScroll = i()
}(this, function () {
"use strict";
....
function(t,i)里面是什么意思,看不懂,求解答,谢谢!!
这个是混淆后的代码,
t
和i
其实就是下面的this
和function(){}
,一般就this
就是window
,里面会暴露出一个构造函数,主要为了兼容采用了umd
的模块输出