What is the best way to get current url string in an html a tag?

后端 未结 0 1362
栀梦
栀梦 2021-02-06 01:40

I have the below block of code and I want to use javascript to check if current url string has "?mall", then I will add that to my href attribute in the tag. What is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题