Change URL and redirect using jQuery

前端 未结 6 1456
眼角桃花
眼角桃花 2020-11-27 09:37

I have some code like this,

and now I want to redirect lik

6条回答
  •  粉色の甜心
    2020-11-27 10:31

    you can do it simpler without jquery

    location = "https://example.com/" + txt.value
    

    function send() {
      location = "https://example.com/" + txt.value;
    }

提交回复
热议问题