当前位置:网站首页>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 !
边栏推荐
- Regular expression =regex=regular expression
- HLS4ML进入方法
- 【let var const】
- Ffmpeg common commands (2)
- qobject_cast用法
- JS ternary expression complex condition judgment
- 703. 数据流中的第 K 大元素
- After studying 11 kinds of real-time chat software, I found that they all have these functions
- Wireshark packet analysis TCP, FTP
- CMU AI PhD first year summary
猜你喜欢
JS的Proxy
音视频、编解码相关电子书、小工具,打包奉送!
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
118. Yanghui triangle
servlet知识点
GC garbage collection
Introduction to relevant processes and functions of wechat official account development
安装sharp报错
科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
产品模块化设计的前世今生
随机推荐
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']
Summary of SQL query de duplication statistics methods
商业智能BI开发和报表开发有什么本质区别?
【无标题】
win10下使用msys+vs2019编译ffmpeg源码
[SQL optimization] the difference between with as and temporary tables
axure不显示元件库
Collation of open source protocols of open source frameworks commonly used in Web Development
Define dichotomy lookup
较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
What must be done in graduation season before going to Shanhai
Analysis of GetMessage underlying mechanism
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
ffmpeg 音频相关命令
通过js实现金字塔(星号金字塔,回文对称数字金字塔)
一文读懂C语言中的结构体
Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
Class loading mechanism
JS ternary expression complex condition judgment