一、需求描述 在 Word 中编辑文档的时候,可以在视图中打开导航窗格来查看目录树 类似的,现在需要基于页面上的文章,渲染出一个这样的目录结构 在网页上这些标题都是通过 <h1> 这样的标签渲染的,而且段落与标题之间是兄弟节点的关系 所以第一步只需要获取到文章的根节点,然后遍历 <h1> 这样的兄弟 ...
分类:
编程语言 时间:
2021-06-02 15:54:18
阅读次数:
0
/* * 24小时内显示几小时前 * 7天内显示几天前 * 超过7天显示月日 * */public function getTimeResult($time=1622256157){ //当前的时间戳 $ctime = time(); //当前时间戳-传入的时间戳=时间差 $difference = ...
分类:
微信 时间:
2021-06-02 15:29:24
阅读次数:
0
https://hyperledger-fabric.readthedocs.io/en/latest/readwrite.html Read-Write set semantics This document discusses the details of the current impleme ...
分类:
其他好文 时间:
2021-06-02 15:28:52
阅读次数:
0
https://docs.docker.com/engine/install/ubuntu/ Set up the repository apt-get update apt-get install \ apt-transport-https \ ca-certificates \ curl \ g ...
分类:
其他好文 时间:
2021-06-02 15:16:09
阅读次数:
0
#多分支 if (条件表达式1) { 语句1 } else if (条件表达式2) { 语句2 } else { 语句3 } #三元表达式 条件表达式 ? 表达式1 : 表达式2 //真1假2 ##案例 var time = prompt('请输入一个1~59的数字') time = time > ...
分类:
Web程序 时间:
2021-06-02 15:06:09
阅读次数:
0
golang中的package time提供了用来表示时间的相关数据结构,包括: time.Location 表示一个时区信息; time.Time 表示一个带时区的时间信息; time.Duration 表示一个可转换成任意单位的时间长度信息; time.Ticker 表示一个周期定时器,用来执行 ...
分类:
其他好文 时间:
2021-06-02 14:59:55
阅读次数:
0
接口、内部类、异常[简单分类、异常体系结构、Error、Exception] ...
分类:
编程语言 时间:
2021-06-02 14:59:24
阅读次数:
0
How Long Does It Take Given the relations of all the activities of a project, you are supposed to find the earliest completion time of the project. In ...
分类:
其他好文 时间:
2021-06-02 14:53:07
阅读次数:
0
背景 go 操作 ftp , 使用 github.com/jlaffaye/ftp这个库 问题复现 登录时报错,错误如题 解决方案 添加参数,禁用 utf8 ftp.Dial("ftp.example.com:21", ftp.DialWithTimeout(5*time.Second), ftp. ...
分类:
其他好文 时间:
2021-06-02 14:45:08
阅读次数:
0
####需求,当符合条件1 修改 A表 或 新增 A表 oracle 写法 语法: merge into 目标表 a using 源表 b on(a.条件字段1=b.条件字段1 and a.条件字段2=b.条件字段2 ……) when matched then update set a.更新字段=b ...
分类:
数据库 时间:
2021-06-02 14:37:34
阅读次数:
0