nuxt 设置网站关键词,描述等


 

 下面是代码撒

 1 head() {
 2             return {
 3                 title: this.htnltext.title,
 4                 meta: [{
 5                     name: "keywords",
 6                     hid: "newk",
 7                     content: this.htnltext.keywords
 8                 },
 9                 {
10                     name: "description",
11                     hid: "newd",
12                     content: this.htnltext.description
13                 }
14                 ],
15                 script: [{
16                     innerHTML: 'console.log("I am in body");',
17                     type: 'text/javascript',
18                     body: false
19                 }],
20                 __dangerouslyDisableSanitizers: ['script'],
21             }
22         }

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM