当前位置:网站首页>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 !
边栏推荐
- mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
- 产品模块化设计的前世今生
- Audio and video, encoding and decoding related e-books, gadgets, packaged for free!
- GC garbage collection
- Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits
- 较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
- Opencv video quality detection -- sharpness detection
- Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
- 118. 杨辉三角
- 如何正确使用Vertx操作Redis(3.9.4带源码分析)
猜你喜欢

Actual combat of flutter - fast implementation of audio and video call application

Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference

AAAI2020: Real-time Scene Text Detection with Differentiable Binarization

Object creation

After studying 11 kinds of real-time chat software, I found that they all have these functions

Test self-study people must see: how to find test items in software testing?

P2433 【深基1-2】小学数学 N 合一

DTD modeling

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

Uni app product classification
随机推荐
How to add transactions in JDBC
GetMessage底层机制分析
OpenCV视频质量检测--清晰度检测
一文读懂C语言中的结构体
类加载机制
703. 数据流中的第 K 大元素
事务隔离级别 gap锁 死锁
Ffmpeg audio related commands
Wireshark packet analysis TCP, FTP
What must be done in graduation season before going to Shanhai
HLS4ML进入方法
JS ternary expression complex condition judgment
HLS4ML/vivado HLS 报错解决方案
测试自学人必看:软件测试如何找测试项目?
mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
Regular expression =regex=regular expression
703. The k-th element in the data flow
精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會
SQL 入门计划-1-选择
[English grammar] Unit1 articles, nouns, pronouns and numerals