0
点赞
收藏
分享

微信扫一扫

让计算机在页面中输出一个内容,以及在控制台中输出一个内容

小禹说财 2022-04-14 阅读 55
javascript
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<script>

		//让计算机在页面中输出一个内容


		document.write("我们结婚吧,");
		document.write("以你之名,冠我之姓,");
		document.write("吾之爱汝,");
		document.write("唯愿执子之手,");
		document.write("与子偕老。");
		document.write("——");
		document.write("我想你了,");
		document.write("月下饮茶,念卿天涯。");
		document.write("——");
		document.write("我爱你,");
		document.write("世间安得双全法,");
		document.write("不负如来不负卿。");
		document.write("——");
		document.write("我等你,");
		document.write("寒灯纸上,梨花雨凉,");
		document.write("我等风雪又一年,");
		document.write("静待一世花开,");
		document.write("盼你叶落归来。");
		document.write("——");
		document.write("我只想把最好的给你,");
		document.write("我愿提笔画尽天下,");
		document.write("许你一世繁华。");
		document.write("——");







		//在控制台中输出一个内容


		console.log("拒绝当舔狗!");
		console.log("拒绝卑微,兄弟们!!");
		console.log("追不到咱就换目标");
		
		
		
	</script>
<body>
</body>
</html>

自娱自乐,不喜勿看,刚开始自学

橙色的圈是document.write(" ");输出的内容

在浏览器中按下F12,打开开发者工具,红色的圈是控制台

蓝色的圈是控制台输出的内容

 

举报

相关推荐

0 条评论