Js引入方式和输出方式

1.Js引入方式

1.嵌入方式:写在页面内部,可以写在页面的任何位置,一般写在head中,body后。
2.引入方式:很多html页面都可以调用设定的js页面。
3.在事件后调用。

2.Js输出方式

1.alert(“要输出的内容”);。
2.document.write(“要输出的内容”);
3.console.log(“要输出的内容”);

猜你喜欢

转载自blog.csdn.net/qq_41627870/article/details/87096526