window.onresize = funcRef; window.onresize = () => { this.funcRef(); }; 转载于:https://www.cnblogs.com/aisiqi-love/p/10246378.html