var Dropdown = function() {
function Dropdown(element) {
_classCallCheck(this, Dropdown);
this._element = element;
this._addEventListeners();
}
在bootstrap 4的javascript中,它们调用this._element = element
。this_元素动态变量? Bootstrap4 Javascript
但_element
没有在任何地方定义。这是动态实例化变量?
'函数下拉列表(元)' – Isaac
注:'element'参数 – Isaac