Skip to content

fnc c0022 deleteChildspriteAll

tickle edited this page Feb 22, 2021 · 1 revision

← オブジェクトリファレンスに戻る

deleteChildspriteAll

概要

  • 引数に指定したオブジェクトID配下の子オブジェクト、並びにボタンに付属しているListenerを削除する関数。
  • 引数に指定したオブジェクト自体は削除の起点となるだけで、削除はされない。

引数(括弧内はデフォルト値)

引数 必須 指定内容
_parentObjName string * 削除起点のオブジェクト

返却値

  • なし

使用例

/**
 * 譜面変更セレクターの削除
 */
const resetDifWindow = _ => {
	if (document.querySelector(`#difList`) !== null) {
		deleteChildspriteAll(`difList`);
		optionsprite.removeChild(document.querySelector(`#difList`));
		optionsprite.removeChild(document.querySelector(`#difCover`));
	}
};

English | Japanese

How To Play
(プレイ方法)

How To Make
(作り方、移行方法)

How To Upgrade? / What's New?
(本体の更新方法、更新情報)

Specification (for creators)
(仕様・製作者向け)

Specification (for developers)
(仕様・開発者向け)

Tips
(用途別対処方法)

Repository Local Rules
(リポジトリルール・管理者向け)

Others
(その他)

Clone this wiki locally