Meteor - 设置文档标题 [英] Meteor - Setting the document title
本文介绍了Meteor - 设置文档标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法更改 Meteor 应用程序中的
元素?似乎模板只在 中处理.
Is there a way to change the <title>
element in a Meteor app? Seems templates are only processed in the <body>
.
推荐答案
几乎位于客户端 JavaScript 代码的任何位置:
Pretty much anywhere in your client-side JavaScript code:
document.title = "My new title";
这篇关于Meteor - 设置文档标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文