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.
所以,我有一个 index.html 文件。 我从 another.html 文件中加载一些 div,如下所示: a href="another.html" 然后,在 jQ 中,我使用 .preventDefault(); 在 .load 之前的这个锚标记上 我的 another.html 文件会被 Google、Yahoo 等索引吗?
是的。事实上,他们这样做的方式被称为渐进式增强,并且应该如何构建动态网站,因为它允许非 JavaScript 启用的用户仍然可以访问内容。好工作。