How to get the previous URL in JavaScript?

后端 未结 7 771
野趣味
野趣味 2020-11-22 06:05

Is there any way to get the previous URL in JavaScript? Something like this:

alert(\"previous url is: \" + window.history.previous.href);

7条回答
提交回复
热议问题