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.
我正在尝试为 Google Rich Snippets 的字体标签添加一个属性,我可以这样做没有问题,但是因为页面已加载,因此更改不在 HTML 源代码中。有谁知道在 DOM 加载之前添加属性的方法?
这使用 JS 解决方案(如 jQuery)是不可能的,因为它只操作 DOM(在部分或完全加载之后),而不是页面源本身。页面源必须在服务器端更改。