This article describes the simple implementation of JS to output information imitating Baidu console. Share it for your reference, as follows:
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title></head><body><h3>Open the console and take a look</h3><script type="text/javascript">console.log("What kind of process does a web page have to go through to reach the user? /nWhat kind of growth does a newcomer have to go through to stand at the top of technology? /nExplore the secrets here; /nExperience the challenges here; /nBecome the owner here; /n Join XX enterprise and join web search, you can influence the world. /n");console.log("Please send your resume to %c Mars","color:red");console.log("Position introduction: http://www.xxx.com")</script></body></html>The renderings are as follows:
For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript Errors and Debugging Skills", "Summary of JavaScript Switching Special Effects and Skills", "Summary of JavaScript Animation Special Effects and Skills", "Summary of JavaScript Search Algorithm", "Summary of JavaScript Data Structures and Algorithm Skills", "Summary of JavaScript traversal algorithms and techniques", "Summary of json operation techniques in JavaScript" and "Summary of JavaScript Mathematical Operation Usage"
I hope this article will be helpful to everyone's JavaScript programming.