연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > 차단 > 데이터
Block.data 속성
블록과 XML 간에 왕복하는 텍스트 데이터(선택사항)입니다. 효과가 없습니다. 타사에서 메타 정보용으로 사용할 수 있습니다.
서명:
data: string | null;
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[null,null,["최종 업데이트: 2024-08-22(UTC)"],[[["`data` is an optional property on Blockly blocks used to store arbitrary text data."],["This data is preserved when blocks are converted to and from XML, allowing for persistence."],["`data` has no inherent functionality within Blockly itself and is primarily intended for use by external tools or extensions."],["It can be used to store metadata, custom configurations, or any other information relevant to a specific block."]]],["The `Block.data` property is an optional string or null value associated with a block. It allows for storing text data that persists during XML serialization and deserialization. This property has no internal effect within the system, and it serves as a metadata container for external use by third-party developers. It enables additional information to be associated with blocks without impacting the core functionality.\n"]]