我在模板中使用 vue-router 和 jQuery,当我切换路由器 $(document).ready() 失败 [英] I use vue-router and jQuery in the template,when i switch router $(document).ready() is failure

查看:16
本文介绍了我在模板中使用 vue-router 和 jQuery,当我切换路由器 $(document).ready() 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道 jQuery 在 vue 中的正确用法.当我刷新页面时, $(document).ready() 有一个作用.但是当我通过 vue-router 切换页面时,$(document).ready() 不起作用.