当前位置:网站首页>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 !
边栏推荐
- 【无标题】
- How to add transactions in JDBC
- Analysis of GetMessage underlying mechanism
- axure不显示元件库
- Live HLS protocol
- DTD modeling
- servlet知识点
- 703. The k-th element in the data flow
- How to correctly use vertx to operate redis (3.9.4 with source code analysis)
- 1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包
猜你喜欢
类加载机制
产品模块化设计的前世今生
新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
118. 杨辉三角
EasyGBS网络不稳定情况下重复请求视频拉流问题的优化
Methods of finding various limits
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
How to solve the problem of splash screen when the main and sub code streams of easygbs are h.265?
MySQl的基本使用
随机推荐
torch.nn.functional.interpolate函数
axure不显示元件库
【let var const】
ModSim基本使用(Modbus模拟器)
Opencv video quality diagnosis - VIDEO occlusion diagnosis
事务隔离级别 gap锁 死锁
Ffmpeg common commands (2)
Live HLS protocol
Object creation
Collation of open source protocols of open source frameworks commonly used in Web Development
新增订单如何防止重复提交
商业智能BI开发和报表开发有什么本质区别?
Interview questions for audio and video positions in Dachang -- today's headline
Salesmartly has some tricks for Facebook chat!
[SQL optimization] the difference between with as and temporary tables
GB28181的NAT穿透
JVM内存模型
采集抖音视频
Introduction to relevant processes and functions of wechat official account development
一文读懂C语言中的结构体