laszlo 방법의 두 가지 다른 표기 법
1937 단어 방법.
,
<canvas width="500" height="200"> <script> // Moves the second window twenty pixels to the right // function moveWindow() { var increment = 20; var originalX = canvas.windowTwo.getAttribute('x'); var newX = originalX + increment; canvas.windowTwo.setAttribute('x', newX); } </script> <window x="100" y="30" title="Window 2" name="windowTwo"> <text>This is the second window.</text> </window> <window x="20" y="20" width="150" title="Simple Window"> <button text="My button" onclick="moveWindow();"/> </window></canvas>
, , <method name="XXX"></method>, onclick
name .
<canvas width="500" height="200"> <window x="100" y="30" title="Window 2" name="windowTwo"> <text>This is the second window.</text> </window> <window x="20" y="20" width="200" title="Simple Window"> <button text="My button" onclick="this.moveWindow()"> <!-- Moves the second window twenty pixels to the right --> <method name="moveWindow"> var increment = 20; var originalX = this.parent.parent.windowTwo.getAttribute('x'); var newX = originalX + increment; this.parent.parent.windowTwo.setAttribute('x', newX); </method> </button> </window></canvas>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
JavaScrpt 의 substr () 방법추출 할 하위 문자열 의 시작 아래 표 시 됩 니 다.수치 여야 합 니 다.음수 라면 이 매개 변 수 는 문자열 의 끝부분 부터 계 산 된 위 치 를 설명 합 니 다.즉, - 1 은 문자열 의 마지막 문 자 를 가리...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.