DdToken - bhsd-harry/wikiparser-node GitHub Wiki

Other Languages

简介

;位于同一行的:

以下所有属性和方法在 MiniBrowser 版本中均不可用。

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);