当前位置:网站首页>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 !
边栏推荐
猜你喜欢
Use the uni app demo provided by Huanxin to quickly realize one-on-one chat

How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?

Solution and summary of Nacos startup failure

Cookie和Session的相关概念

Optimization of video streaming with repeated requests in the case of unstable easygbs network

JS 之 常用内置类的使用

Salesmartly has some tricks for Facebook chat!

Crunch简介、安装,使用Crunch制作密码字典

1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包

servlet知识点
随机推荐
再回顾集合容器
Task: denial of service DOS
torch. nn. functional. Interpolate function
Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
自定义插入页面标签以及实现类似通讯录的首字母搜索
qobject_cast用法
EasyGBS网络不稳定情况下重复请求视频拉流问题的优化
JVM内存模型
SIP protocol of gb28181
Cookie和Session的相关概念
118. Yanghui triangle
利用win7漏洞进行系统登录密码破解
What must be done in graduation season before going to Shanhai
Define dichotomy lookup
torch.nn.functional.interpolate函数
博途V16 获取系统时间转换成字符串
Collation of open source protocols of open source frameworks commonly used in Web Development
Ubuntu14 install MySQL and configure root account local and remote access
宝,运维100+服务器很头疼怎么办?用行云管家!
正则表达式=Regex=regular expression