javascript获取当前网页路径

版权声明:有问题可联系博主QQ:15577969,大家一起相互交流和学习。 https://blog.csdn.net/qq15577969/article/details/84333460
<script type="text/javascript">
	//url(当前网页的URL,不包含#及其后面部分)
    var url = window.location.href.split('#')[0];
</script>

猜你喜欢

转载自blog.csdn.net/qq15577969/article/details/84333460