农行北京分行营业部:如何在一个js文件里包含另一个js文件

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 23:29:20
如题:
比如,一个叫1.js的文件里是这样的
document.write('111');
/*document.write('<script src="http://webpresence.qq.com/getonline?Type=1&188056089:188056109:"></script>');
*/
document.write('222')
如何将/* */里的文件包含进入啊,我想在该文件里引用http://webpresence.qq.com/getonline?Type=1&188056089:
谢谢啦

file1.js:
var file2 = '<script language="JavaScript" src="http://whatever/file2.js"><\/script>';

document.write(file2);