[removed] Scope of a Variable across different Javascript files

后端 未结 3 1505
滥情空心
滥情空心 2020-12-16 22:21

I defined a variable in one of my JavaScript files. I want to access the value of that variable among JavaScript files. In one file I am initializing the value of that varia

3条回答
  •  失恋的感觉
    2020-12-16 22:38

    also, once globally defined, you might need to be accessing it via the window object like this: window.your_variable OR window['your_variable']

提交回复
热议问题