天天看點

JSP如何将a标簽跳轉到外網? - JavaWeb

<a href="${user.email}">${user.email}</a>      

上面的 ​

​${user.email}​

​ 的内容是 clearlight.top

但是項目中跳轉的網址是: ​

​localhost:8080/clearlight.top​

可我想跳到 https://www.clearlight.top 啊

解決辦法

<a href="https://${user.email}">${user.email}</a>