最近更新的页面
Commands
BookStack has some command line actions that can help with maintenance and common operations. The...
Date 对象
Date对象是 JavaScript 原生的时间库。它以国际标准时间(UTC)1970年1月1日00:00:00作为时间的零点,可以表示的时间范围是前后各1亿天(单位为毫秒)。 普通函数的用法 ...
模式扩展
简介 Shell 接收到用户输入的命令以后,会根据空格将用户的输入,拆分成一个个词元(token)。然后,Shell 会扩展词元里面的特殊字符,扩展完成后才会调用相应的命令。 这种特殊字符的扩展...
同源限制
浏览器安全的基石是“同源政策”(same-origin policy)。很多开发者都知道这一点,但了解得不全面。 概述 含义 1995年,同源政策由 Netscape 公司引入浏览器。目前,所有...
Searching Content
The ability to search your documentation is vital to day-to-day use. There are a few locations wi...
Attachments
Within BookStack you can attach files & links to pages, so they can be referenced within content ...
Language Configuration
By default the BookStack interface is shown in English. Additional languages are supported by the...
nk
nk is a command line tool that generates nkeys. NKeys are a highly secure public-key signature s...
TypeScript 模块
简介 任何包含 import 或 export 语句的文件,就是一个模块(module)。相应地,如果文件不包含 export 语句,就是一个全局的脚本文件。 模块本身就是一个作用域,不属于全局...
Mutation Observer API
概述 Mutation Observer API 用来监视 DOM 变动。DOM 的任何变动,比如节点的增减、属性的变动、文本内容的变动,这个 API 都可以得到通知。 概念上,它很接近事件,可...
Element 节点
简介 Element节点对象对应网页的 HTML 元素。每一个 HTML 元素,在 DOM 树上都会转化成一个 Element节点对象(以下简称元素节点)。 元素节点的 nodeType属性都是...
引号和转义
Bash 只有一种数据类型,就是字符串。不管用户输入什么数据,Bash 都视为字符串。因此,字符串相关的引号和转义,对 Bash 来说就非常重要。 转义 某些字符在 Bash 里面有特殊含义(比...
RegExp 对象
RegExp对象提供正则表达式的功能。 概述 正则表达式(regular expression)是一种表达文本模式(即字符串结构)的方法,有点像字符串的模板,常常用来按照“给定模式”匹配文本。比...
Class 的继承
简介 Class 可以通过 extends关键字实现继承,让子类继承父类的属性和方法。extends 的写法比 ES5 的原型链继承,要清晰和方便很多。 class Point { } clas...
TypeScript 的 interface 接口
简介 interface 是对象的模板,可以看作是一种类型约定,中文译为“接口”。使用了某个模板的对象,就拥有了指定的类型结构。 interface Person { firstName: ...
Reusing Page Content
Within BookStack you may find that you want to include the same block of content in multiple plac...
Page Templates
Within BookStack you can mark a page as a template so that its content can easily be reused when ...
package.json
简介 npm 模块就是一个包含 package.json 文件的目录。 npm 模块分成 CommonJS 和 ES 两种格式。以下情况会以 ES 格式处理模块。 脚本后缀名为 .mjs。 脚本...
TypeScript 的注释指令
TypeScript 接受一些注释指令。 所谓“注释指令”,指的是采用 JS 双斜杠注释的形式,向编译器发出的命令。 // @ts-nocheck // @ts-nocheck告诉编译器不对当前...
行操作
简介 Bash 内置了 Readline 库,具有这个库提供的很多“行操作”功能,比如命令的自动补全,可以大大加快操作速度。 这个库默认采用 Emacs 快捷键,也可以改成 Vi 快捷键。 $ ...