<var>
요소를 사용하면 리더가 자리표시자 변수를 자체 변수로 대체할 수 있습니다.
값으로 사용됩니다.
일반 사용법
마크다운 클릭하여 복사 코드 블록의 수정 가능한 자리표시자 변수는 기본적으로 수정할 수 있습니다.
Edit the name of this PROJECT_ID.
수정 기능 사용 설정
edit
클래스를 <var>
요소에 추가하여 다음과 같은 변수를 만듭니다.
EDITABLE
는 코드 블록 외부에 있습니다.
수정 기능 사용 중지 중
This example adds the `readonly` class to the <var> element to create an
UNEDITABLE_VARIABLE.
This example adds the `readonly` class to the code block to disable editability
of both VARIABLE_1 and VARIABLE_2.
도움말
This EDITABLE variable has a tooltip that defaults to the
name of its original placeholder text.
This EDITABLE variable uses a `label`
attribute to create a custom tooltip named
Edit me.
동기화
범위가 동일한 수정 가능한 자리표시자 변수가 각각 동기화됨 새 값을 반영하도록 즉시 업데이트됩니다.
동기화 사용 중지
This variable synchronizes by default because it is in a click-to-copy code
block. It has a `label` attribute named `variable with scope`:
VARIABLE
This variable adds the `no-scope` class so that it does not synchronize with the
other variables and has a `label` attribute named `variable without scope`:
VARIABLE
This variable also synchronizes by default and has a `label` attribute named
`variable with scope`:
VARIABLE
동기화 사용 설정
이 자리표시자 VARIABLE
는
코드 블록 외부에 설정되고 scope
속성을 사용하여
위 동기화 사용 중지 섹션의 변수 참조