Calling URL parameters within a .js file

前端 未结 8 2297
北荒
北荒 2021-01-05 01:51

I am calling a .js file within a HTML file. On the URL to the .js file I want to include a parameter that will be accessable to the code INSIDE the .js file.

For exa

8条回答
  •  暖寄归人
    2021-01-05 02:30

    Approach the problem differently:

    1. Include your .js file
    2. Call a function defined in your .js file with a parameter (i.e. your ID value)

提交回复
热议问题