Pass variable to external JS file?

前端 未结 4 1792
遇见更好的自我
遇见更好的自我 2020-12-19 04:28

Is it possible to pass a variable to a linked .js file? I tried this:



        
4条回答
  •  清歌不尽
    2020-12-19 04:46

    No, you can't pass parameters like that and have the script read them in.

    Technically you could grab them from the

提交回复
热议问题