節(jié)點(diǎn).style.pointerEvents = 'none'; 可以取消綁定事件·
節(jié)點(diǎn).style.pointerEvents = 'auto'; 獲取綁定事件
自適應(yīng)
resize() {
let times;
window.onresize = function() {
times = setTimeout(() => {
this.cliX = document.documentElement.clientWidth;
this.columns = parseInt(this.cliX / this.imgW);
this.sortImg();
this.lazyImg();
}, 100)
}.bind(this)
}