DdToken - bhsd-harry/wikiparser-node GitHub Wiki
Other Languages
简介
与;
位于同一行的:
。
以下所有属性和方法在 Mini 和 Browser 版本中均不可用。
Properties
indent
type: number
缩进数。
// indent (main)
var {lastElementChild} = Parser.parse(';;a::b');
assert.equal(lastElementChild, '::');
assert.strictEqual(lastElementChild.indent, 2);
lastElementChild.indent = 1;
assert.equal(lastElementChild, ':');
Methods
cloneNode
returns: this
深拷贝节点。
// cloneNode (main)
var {lastElementChild} = Parser.parse(';a::');
assert.equal(lastElementChild, ':');
assert.deepStrictEqual(lastElementChild.cloneNode(), lastElementChild);