Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >入力 >removeField
この入力からフィールドを削除してください。
署名:
removeField(name: string, opt_quiet?: boolean): boolean;
パラメータ
| パラメータ |
型 |
説明 |
| name |
文字列 |
フィールドの名前。 |
| opt_quiet |
ブール値 |
(省略可)フィールドが存在しない場合にエラーが発生しないようにするには true にします。 |
戻り値:
ブール値
オペレーションが成功した場合は true、フィールドが存在せず、opt_quiet が true の場合は false。
例外
{エラー}: フィールドが存在せず、opt_quiet が false の場合。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `Input.removeField()` method removes a field from an input. It accepts the field's name (string) as a required parameter and an optional boolean (`opt_quiet`). If `opt_quiet` is false and the field is missing, it throws an error; otherwise, it returns `false`. If the operation succeeds it will return `true`. The method returns a boolean indicating the success or failure of the removal.\n"]]