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.
我在 jspx 上有一个链接,它将带您到另一个 jspx 页面。例如,我在主页上,然后单击应该打开名为 products 的 jspx 的链接。我用过这段代码
<a href="products">View all products</a>
但它不起作用。我该怎么做?
应该指向实际页面本身(使用有效的hrefURL),例如products.jspx.
href
products.jspx
例子:
<a href="products.jspx">View All Products</a>
如果您的产品页面位于另一个文件夹中:
<a href="folder/products.jspx">View All Products</a>