Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是网页开发的新手。我想做的事情是创建一个指向子页面的链接,并让链接的文本部分动态显示子页面的元描述。因此,如果在某个时候我更新了子页面的描述,然后在主页上刷新浏览器,更新后的描述将自动显示在链接中。知道怎么做吗?
为此,您将需要 php。就像是
<?php $tags = get_meta_tags('http://www.yousite.com/'); $content = $tags['description']; echo "<a href=\"http://www.yousite.com/\">".$content."</a>"; ?>