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

最新文章

  1. node02-util
  2. Hive:org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace quota (directories and files) of directory /mydir is exceeded: quota=100000 file count=100001
  3. EDMA3随笔
  4. docker gitlab,redmine,etc development enviroments
  5. sybase参数调整
  6. java生成汉字验证码
  7. 【转】iOS- 详解文本属性Attributes
  8. get client machine name
  9. Linux服务器间信任关系建立方法
  10. (原)torch使用caffe时,提示CUDNN_STATUS_EXECUTION_FAILED
  11. django-celery
  12. 乐在其中设计模式(C#) - 责任链模式(Chain of Responsibility Pattern)
  13. SQL Server 板机
  14. 模拟做饭系统(java+线程中的join方法)
  15. 02-Python的下载和安装_Python编程之路
  16. python 面向对象(六)MRO C3算法 super
  17. iOS 可高度自定义的底部弹框
  18. Echarts简单案例
  19. python hashillb 模块
  20. JAVA中字符串的startWith什么意思

热门文章

  1. 通用js类库
  2. quick cocos 的scheduler 定时器
  3. DELPHI设置枚举类型size
  4. Bmob用户管理操作
  5. Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry has been closed.
  6. chrome控制台支持多行js模式
  7. 【Web】关于URL中文乱码问题
  8. Balanced Binary Tree
  9. spring3.2.8+quartz2.2.0(比较全,对比quartz1.x的配置)
  10. python提取百万数据到csv文件