nuxt 使用window对象

判断是服务端仍是客户端dom

通常操做dom的方法:console

if (process.browser) {
 console.log('此处操做dom')
}方法

相关文章
相关标签/搜索