html读取当前网址,并直接显示

在 html 中用 <script> 包裹放到需要读取并显示的地方

document.write(window.location.href);
Markup

 

TAG


— THE END —