当前位置:网站首页>How to use console Log print text?
How to use console Log print text?
2022-07-01 19:43:00 【Su Su is little Su Su】
1.console
console Global variable window( or global) Next object , Print on console console, It can be found that he provides many methods .
console.log(console)

2. Place holder

console.log(" The printed string is :%s", "123");
console.log("%o", document.body);
console.log(" The integer printed is :%d", 111.00);
console.log(" The floating point number printed is :%f", 111.00);
3. Print text and pictures
console.log("%c Information to be output ", "css Code ");
console.log(`%c Susu `, ` color:red;
font-size:25px;
`)
console.log("%c+",
`font-size: 1px;
padding: 100px 100px;
background-image: url(https://i.postimg.cc/mgsKJGLw/susu1.jpg);
background-size: contain;
background-repeat: no-repeat;
color: transparent;`);

4. More code , Focus on Su Su's code cloud !
边栏推荐
- Using win7 vulnerability to crack the system login password
- 118. Yanghui triangle
- How to add transactions in JDBC
- qobject_cast用法
- JS ternary expression complex condition judgment
- Basic knowledge of audio coding and decoding
- Cookie和Session的相关概念
- [SQL optimization] the difference between with as and temporary tables
- Flutter 实战-快速实现音视频通话应用
- 面试题 16.16. 部分排序-双指针法
猜你喜欢
随机推荐
Linux下安装Redis,并配置环境
Task: denial of service DOS
Ffmpeg audio related commands
PowerDesigner设计Name和Comment 替换
H264 encoding profile & level control
JVM memory model
brpc理解
Botu V16 obtains the system time and converts it into a string
Flutter 实战-快速实现音视频通话应用
Brpc understanding
Proxy in ES6
Introduction to relevant processes and functions of wechat official account development
A brief understanding of white box encryption technology
简版拼多多商品数据
MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
H264编码profile & level控制
音频编解码基础知识
较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
118. 杨辉三角
HLS4ML/vivado HLS 报错解决方案









