我如何将组件的变量绑定到index.html,我想将变量从组件传递/绑定到index.html,具体我想更改
<meta property="og:title" content="" />
您可以尝试以下方式:
let ogTitleMeta = document.querySelector('meta[property="og:title"]');
ogTitleMeta.content = 'change content here!';
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句