1
내가 (문자열
photo
또는
bio
수를 ether 것) 모드를 평가하고 파이어 폭스
animationend
또는 여부에 따라 이벤트 리스너를 추가 할 객체를 만들기 위해 노력하고
({
photo: foo.addEventListener("animationend", photoCycle, true) || foo.addEventListener("webkitAnimationEnd", photoCycle, true),
bio: foo.addEventListener("animationend", bioCycle, true) || foo.addEventListener("webkitAnimationEnd", bioCycle, true)
})[mode]
크롬 webkitanimationend
. 이상하게도, 모드가 photo
인 경우 bio
키의 유효하지 않은 레이블에 대한 구문 오류가 발생합니다.잘못된 라벨 이벤트 리스너를 추가 할 Javascript-