How to pass a parameter to a javascript through a url and display it on a page?

前端 未结 6 1519
一个人的身影
一个人的身影 2020-12-05 05:51

For instance, I have a url like this : www.mysite.com/my_app.html

How do I pass a value \" Use_Id = abc \" to it and use javascript to display on that page ?

6条回答
  •  粉色の甜心
    2020-12-05 06:36

    Your server side script could read the value and set it in a hidden form field which your JS could then read.

提交回复
热议问题