외부 JS 파일에 코드 작성
$(document).ready(function(){
var button = window.$this.children('button');
button.setStyle('cursor', 'pointer');
// 클릭 이벤트 등록
button.on('click', function(event){
var image = window.$this.children('image');
image.toggleVisible();
});
});


Last updated