您的位置:老铁SEO > 站长新闻 > 网站交易 >

javascript,javaScript-如何引入js代码

文章来源:http://www.6cu.com

作者:论坛外链

人气:10

2021-03-22 10:33:30

     javaScript-如何引入js代码

     直接po代码和截图

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>js01-如何引入js代码</title>

<script type="text/javascript">

//script标签的type="text/javascript"可以省略

document.write("江西省赣州市于都县<br/>");

console.log("hello hi \n world ");

console.log("tom ok\njack");

console.log("jerry<br/>ok");

</script>

<script src="hello.js" type="text/javascript"></script>

</head>

<body>

<h1>js01-如何引入js代码</h1>

<!-- 

如何引入js代码?

1.直接内嵌

2.引入外部的js文件

 -->

<script type="text/javascript">

//script标签的type="text/javascript"可以省略

document.write("我的老家在江西省赣州市于都县<br/>");

</script>

<script src="hello.js" type="text/javascript"></script>

</body>

</html>

     hello.js文件

     document.write("好好工作,努力赚钱!");

     原文链接:https://blog.csdn.net/czh500/article/details/99881648


上一篇:number_format,php number_format 丢精度的问题

下一篇:没有了

相关文章

在线客服

外链咨询

扫码加我微信

微信:juxia_com

返回顶部