当前位置:网站首页>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>
边栏推荐
- Break through the existing customer group marketing, and try customer grouping management (including clustering model and other practical effect evaluation)
- Sailing experience not to be missed in New York Tourism: take you to enjoy the magnificent city scenery from different perspectives
- 【Paper】2017_ Research on coordinated control method of underwater vehicle formation marine survey
- Beanfactory creation process
- 破局存量客群营销,试一下客户分群管理(含聚类模型等实操效果评估)
- Malignant bug: 1252 of unit MySQL export
- MySQL查询小工具(一)json格式的字符串字段中,替换json数组中对象的某个属性值
- Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore
- Websocket implementation principle
- JPA复合主键使用
猜你喜欢
File and IO
Connect to the database and run node JS running database shows that the database is missing
图的一些表示方式、邻居和度的介绍
Bean创建流程 与 lazy-init 延迟加载机制原理
Photon pun refresh hall room list
[UGV] schematic diagram of UGV version 32
harbor api 2.0查询
Beanfactory creation process
PBR material: basic principle and simple fabrication
Recommended cultural landmarks of these tourist attractions in Bangkok
随机推荐
IO stream, character read / write, copy
Thread safety and processing caused by multithreading
EasyRecovery数据恢复软件 恢复了我两年前的照片视频数据
史上最全的Redis基础+进阶项目实战总结笔记
Differences between beanfactory and factorybean
Efficiency test of adding and querying ArrayList and LinkedList
Easyrecovery data recovery software recovers my photo and video data two years ago
Unity a* road finding force planning
Connect to the database and run node JS running database shows that the database is missing
SSL universal domain name certificate
Paging query, using jdbc-- paging query
Introduction to system programming
Window10 jar double click to run without response
Differences between cookies and sessions
IO stream, byte stream read / write copy
Create transfer generation point
【Paper】2019_ Distributed Cooperative Control of a High-speed Train
Enlist soldiers and generals, draw small programs, multi-threaded display time
Requirements for transfer transaction cases: 1 Employee 1 transfers money to employee 2. Therefore, two update sals should be executed. Purpose: either both updates are successful or both implementati
Singapore parent-child tour, these popular attractions must be arranged