今天临时要写接口文档,然后发现部门给的文档是markdown文件的,而接口文档是要html格式的,因此想直接把markdown转为html 这里我使用的是marked 首先初始化一个node项目 npm init 然后安装marked npm install marked --save 先引入fs和 ...
分类:
Web程序 时间:
2017-12-08 17:01:21
阅读次数:
289
XPath轴(XPath Axes)可定义某个相对于当前节点的节点集: 1、child 选取当前节点的所有子元素 2、parent 选取当前节点的父节点 3、descendant 选取当前节点的所有后代元素(子、孙等) 4、ancestor 选取当前节点的所有先辈(父、祖父等) 5、descenda ...
分类:
其他好文 时间:
2017-12-07 17:15:49
阅读次数:
363
单下划线、双下划线、头尾双下划线说明: __foo__: 定义的是特殊方法,一般是系统定义名字 ,类似 __init__() 之类的。 _foo: 以单下划线开头的表示的是 protected 类型的变量,即保护类型只能允许其本身与子类进行访问,不能用于 from module import * _ ...
分类:
编程语言 时间:
2017-12-04 13:26:51
阅读次数:
169
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes ...
分类:
其他好文 时间:
2017-12-03 13:59:10
阅读次数:
195
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2017-12-03 12:55:33
阅读次数:
134
1. 条形图 barplot() 2. 饼图:饼图在商业世界中无所不在,然而多数统计学家,包括R相应文档的编写者,都对它持否定态度。相对于饼图,他们更推荐使用条形图或点图,因为相对于 面积,人们对长度的判断更为精确 pie() pie3D() 3. 直方图 :可以展示连续变量的分布. hist(x, ...
分类:
编程语言 时间:
2017-12-02 22:04:31
阅读次数:
280
源码地址: 作者网站: 简介 这是一款基于NodeJs开发的简单的Markdown编辑器,其UI是仿照简书的Markdown编辑器;主要功能:实时解析,实时保存,实时预览,全屏等 预览 技术栈 + NodeJs + Express + Swig + Marked + highJs + Jquery ...
分类:
其他好文 时间:
2017-11-27 18:51:30
阅读次数:
177
轴名称 描述 child 选取当前节点的所有子元素 parent 选取当前节点的父节点 descendant 选取当前节点的所有后代元素(子、孙等) ancestor 选取当前节点的所有先辈(父、祖父等) descendant-or-self 选取当前节点的所有后代元素(子、孙等)以及当前节点本身 ... ...
分类:
其他好文 时间:
2017-11-27 15:21:57
阅读次数:
174
题目描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at ...
分类:
其他好文 时间:
2017-11-11 19:50:56
阅读次数:
167
在尝鲜vuex2时,发现vuex2增加了 mapGetters 和 mapActions 的方法,借助stage2的 Object Rest Operator 特性,可以写出下面代码:methods: { marked, ...mapActions([ 'getArticles' ])}但是在借助b ...
分类:
其他好文 时间:
2017-10-31 17:43:45
阅读次数:
204