会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
强运可乐
博客园
首页
新随笔
联系
订阅
管理
2019年5月18日
vue项目 使用全局组件给页面设置title
摘要: 1.在main.js文件里添加全局组件 Vue.directive('title', { inserted: function (el, binding) { document.title = el.dataset.title } }) 2.在页面组件开头位置添加 Vue.directive('ti
阅读全文
posted @ 2019-05-18 11:35 强运可乐
阅读(1820)
评论(0)
推荐(0)
编辑
公告