document.writeln(location.protocol);
document.writeln(location.origin);  //包括端口号
document.writeln(location.host);    //不包括端口号
document.writeln(location.port);         //默认为80的就为空
document.writeln(location.pathname);
 
<a href="<%=location.origin%>/membership/member/detail?member_id=<%= item.member_id %>">

相关文章:

  • 2021-11-19
  • 2021-11-30
  • 2022-01-11
  • 2021-04-28
  • 2021-04-05
  • 2021-08-19
  • 2022-01-03
  • 2021-12-30
猜你喜欢
  • 2022-02-12
  • 2022-03-05
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案