[英]Pass variables between different .js files; inside the same html file
can anyone help me to pass variables from one .js file to another one, the two .js are instantiated in the same html as following:任何人都可以帮助我将变量从一个 .js 文件传递到另一个文件,这两个 .js 在同一个 html 中实例化,如下所示:
<script src="file_1.js"></script>
<script src="file_2.js"></script>
the content of "file_1.js" is like this: “file_1.js”的内容是这样的:
var paragraph = readFile('file_to_read.tcl');
so what i need, is to use the "paragraph " variable in side the "file_2.js script所以我需要的是在“file_2.js 脚本”旁边使用“段落”变量
Great thanks in advance非常感谢提前
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.