87,901
社区成员
发帖
与我相关
我的任务
分享
如何引用js文件", "upDate": "2021-05-28T19:32:24+08:00" }
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/html">
这里如何引用js文件,我在外部引用没有效果,但是在内部引用失败,不知道如何引用js
</script >
</body>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/html">
<script type="text/javascript" src="jscolor.js"></script>
</script >
</body>
<script type="text/html">
document.innerHtml('<script type="text/javascript" src="jscolor.js"></scr'+'ipt>');
</script >
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/javascript" src="jscolor.js"></script>
<script type="text/html">
</script >
</body>
这样不行么?<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/html">
<script type="text/javascript" src="jscolor.js"></script>
</script >
</body>
这样引用就失败滴,在外部引用js也没有效果,我想引用的就是一个js文件颜色选择器,用表单形式