1. 程式人生 > >JS 仿百度控制檯輸出資訊

JS 仿百度控制檯輸出資訊

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<h3>開啟控制檯看看</h3>
<script type="text/javascript">
console.log("一張網頁,要經歷怎樣的過程,才能抵達使用者面前?\n一位新人,要經歷怎樣的成長,才能站在技術之巔?\n探尋這裡的祕密;\n體驗這裡的挑戰;\n成為這裡的主人;\n加入XX企業,加入網頁搜尋,你,可以影響世界。\n");
console.log("請將簡歷傳送至 %c 火星","color:red");
console.log("職位介紹:http://www.xxx.com")
</script>
</body>
</html>

效果圖: