Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,webpack 默认不向 window 公开函数,以防止与现有全局变量发生冲突。
尽管是一种解决方法,但解决方案是
window.checkPass = function(input) {[...]}