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.
在同构反应应用程序中,我们为客户端和服务器使用相同的代码库。但是如何从服务器(节点 js)调用内部调用 window.function()。
如果我尝试在第三方库中调用某些函数,则会抛出错误,因为 windows 未定义
window仅在安装组件时定义,因此您无法访问任何绑定到window.
window