【发布时间】:2018-09-13 14:46:22
【问题描述】:
我必须修改<meta property="og:url" content="http://a42de5e.contato.site/agradecimento">
<div class="form-group">
<h4 class="control-label" data-selector="h4">Would you support us?</h4>
<label class="radio-inline"><input type="radio" name="Yes" value="Yes">Sim</label>
<label class="radio-inline"><input type="radio" name="No" value="No ">Não</label>
</div>
我使用“getElementByID”尝试了一些东西,但我不确定是否可行,因为它是一个元标记
【问题讨论】:
-
您可以修改该标签的答案很好 - 但它会产生任何效果吗?
meta标签是浏览器的指令;浏览器会对更改采取行动,还是仅在加载时有效? open-graph 协议主要用于搜索引擎和链接预览,从“at-rest”页面读取;当人类正在查看页面时,更改og:url会产生任何影响吗? (除非您将其持久化回服务器)og:url特别是 "The canonical URL of your object that will be used as its permanent ID in the graph" — 更改它有意义吗? -
这看起来像 XY 问题。你能写出为什么你需要改变那个元标记吗?
标签: javascript html css