我有一些外部脚本需要加载到不同的页面上,比如Google Places Autocomplete、Facebook API等.
显然,在每一条路由上加载它们是没有意义的,但是文档并没有解决这个相当常见的场景.
此外,Vue实例安装在主体内的标记上,因为
the mounted element will be replaced with Vue-generated DOM in all cases. It is therefore not recommended to mount the root instance to < html > or < body >.
现实世界的应用程序目前如何处理这种情况?