用 Javascript 在頁面上顯示 Meta description

by | 8 月 6, 2021 | Frontend

<script>
var dirPath= $('meta[name=description]').attr('content');
console.log(dirPath);
document.write(dirPath);
</script>
5 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
RSS
Follow by Email