목록ajax (1)
noname02
2016.02.21
ajax로 엘리먼트를 append 한 후 이벤트리스너를 등록할 때에는$('body').on('event', 'selector', function() { }); 을 사용한다. youtube api 사용 // API를 로드한다.var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";var firstScriptTag = document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // API로드시 콜백함수 function onYouTubePlayerAPIReady() { } // 선..
DailyStudy
2016. 2. 21. 15:50