Skip to content

NoincludeToken

bhsd edited this page Jun 3, 2024 · 11 revisions

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);
Clone this wiki locally