html和text的区别
2024-09-17 21:30:49
1、html
<div id="divShow"><b><i>Write Less Do More</i></b></div> var str1 = $("#divShow").html(); document.write(str1);
结果是:<b><i>Write Less Do More</i></b>
2、text
<div id="divShow"><b><i>Write Less Do More</i></b></div> var str2 = $("#divShow").text(); document.write(str2);
结果是Write Less Do More
最新文章
- node02-util
- Hive:org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace quota (directories and files) of directory /mydir is exceeded: quota=100000 file count=100001
- EDMA3随笔
- docker gitlab,redmine,etc development enviroments
- sybase参数调整
- java生成汉字验证码
- 【转】iOS- 详解文本属性Attributes
- get client machine name
- Linux服务器间信任关系建立方法
- (原)torch使用caffe时,提示CUDNN_STATUS_EXECUTION_FAILED
- django-celery
- 乐在其中设计模式(C#) - 责任链模式(Chain of Responsibility Pattern)
- SQL Server 板机
- 模拟做饭系统(java+线程中的join方法)
- 02-Python的下载和安装_Python编程之路
- python 面向对象(六)MRO C3算法 super
- iOS 可高度自定义的底部弹框
- Echarts简单案例
- python hashillb 模块
- JAVA中字符串的startWith什么意思
热门文章
- 通用js类库
- quick cocos 的scheduler 定时器
- DELPHI设置枚举类型size
- Bmob用户管理操作
- Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry has been closed.
- chrome控制台支持多行js模式
- 【Web】关于URL中文乱码问题
- Balanced Binary Tree
- spring3.2.8+quartz2.2.0(比较全,对比quartz1.x的配置)
- python提取百万数据到csv文件