链接到HTML的远程多个JavaScript文件 [英] Link to remote multiple javascript files from HTML
本文介绍了链接到HTML的远程多个JavaScript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人能帮帮我吗?我有一个HTML文件,我想链接到远程.js文件。
通常我们会这样做:
Hi,
can anyone help me? I have an HTML file, I would like to link to a remote .js files.
Normally we would do as below:
<head>
<script type="text/javascript" src="javascript/javascript.js"></script>
<link rel="stylesheet" href="../css/css.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>HTML</title>
</head>
但是如果我远程分开多个.js文件该怎么办?我该如何链接到特定的.js文件?
先谢谢!!
However what if I have separate multiple .js file remotely. How should I link to a particular .js file?
Thanks in Advance!!
推荐答案
更改javascript / javascript.js与http://www.thesite/thefile.js
change "javascript/javascript.js" with http://www.thesite/thefile.js
这篇关于链接到HTML的远程多个JavaScript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文