NoincludeToken - bhsd-harry/wikiparser-node GitHub Wiki

Other Languages

简介

非嵌入时为<noinclude>,嵌入时为<includeonly><onlyinclude>

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

Properties

hidden

type: true
NoincludeToken 不可见,只读。

// hidden (main)
var {firstChild} = Parser.parse('<noinclude>');
assert.equal(firstChild, '<noinclude>');
assert(firstChild.hidden);

Methods

cloneNode

returns: this
深拷贝节点。

// cloneNode (main)
var {firstChild} = Parser.parse('</noinclude>'),
	cloned = firstChild.cloneNode();
assert.equal(firstChild, '</noinclude>');
assert.equal(cloned, '</noinclude>');
assert.deepStrictEqual(firstChild, cloned);
⚠️ **GitHub.com Fallback** ⚠️