当前位置:网站首页>003-JS-DOM-Attr-innerText
003-JS-DOM-Attr-innerText
2022-06-30 04:46:00 【晴城丶】
JS-DOM-Attr-innerText
- 获取文档对象内部的Text内容。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>01_dom_#attr_innerText</title>
</head>
<body>
<div id="app"><h1>我今天不想上班!</h1></div>
<script> let element = document.getElementById('app') let innerText = element.innerText; //我今天不想上班! console.log(innerText) </script>
</body>
</html>
边栏推荐
- Deep learning ----- different methods to realize inception-10
- What to do when the alicloud SSL certificate expires
- Websocket implementation principle
- Learn about threads
- [UGV] schematic diagram of UGV version 32
- Redis implements SMS login function (I) traditional session login
- Enlist soldiers and generals, draw small programs, multi-threaded display time
- Sectigo certificate
- Enter the date format string as the production date of the commodity, and enter the shelf life (days); Calculate the number of days until today before the expiration date of the product. 1. Change the
- Difference between request forwarding and redirection
猜你喜欢

Network high concurrency
![[FPGA] IIC读写EEPROM 的实现](/img/6a/36e9355058a90d98cffafcbaa1930b.png)
[FPGA] IIC读写EEPROM 的实现

破局存量客群营销,试一下客户分群管理(含聚类模型等实操效果评估)

Unreal 4 learning notes - set player birth point

Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore

SSL universal domain name certificate

Wildcard SSL certificate issuing time

Free travel recommendation in Bangkok: introduction to the Mekong River in Bangkok

Process architecture and process management

Create transfer generation point
随机推荐
System programming summary
[fpga] implementation of IIC read / write EEPROM
力扣周赛293题解
My idea configuration
A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
Circle center technology, very anxious?
Royal Albert Hall, a popular landmark in London
Unity automatic pathfinding
【Paper】2016_ A Learning-Based Fault Tolerant Tracking Control of an Unmanned Quadrotor Helicopter
The subsystem implementing transaction persistence in DBMS is ()
IIS request SSL certificate
This connection is not a private connection this website may be pretending to steal your personal or financial information
Draw on screen border in Commodore 64
SSL update method
Unity enables simple music visualization
File and IO
Spring Festival Tourism Strategy: welcome the new year in Bangkok, Thailand
Introduction to system programming
史上最全的Redis基础+进阶项目实战总结笔记
What is multimodal interaction?