Getting content of a script file using Javascript

前端 未结 8 1208
谎友^
谎友^ 2021-02-07 19:38

I have the following script element in my web page:


Using JavaScript,

8条回答
  •  长发绾君心
    2021-02-07 19:51

    What is in the JavaScript file? If it's actual code, you can run functions and reference variables in there just like you had cut and paste them into the webpage. You'll want to put the include line above any script blocks that reference it.

    Is this what your looking to accomplish?

提交回复
热议问题