jquery

요즘 웹개발 하시는 분 대부분이 jQuery를 많이 사용하고 계실겁니다. 저두 그렇구요^^ 오늘 이 녀석 때문에 3시간 동안 삽질의 삽질을 했네요. 바로 문제의 부분은 스크립트 호출문을 추가를 했지만 해당 페이지를 실행 시키면 methodCall()이란 함수가 정의가 되지 않았다는 스크립트 오류만 뱉어내더군요. 므냐~!! 그렇게 스크립트 디버깅을 IE, FF 왔다갔다하면서 해봤지만 해결을 못했죠 결국 구글링~~~~~~~~~~~~~ 앗!!! 충격적인 한마디 script tags can't be self-closing. You need a closing script tag: What the.......!!!!! 이것은 이렇게 해야지만 된다는거.... O.O 여태까지 난 jquery를 어떻게 쓰고 있었던거지...
// Cross Browser Word Breaker with jQuery // Usage : $('[search]').breakWords(); (function($) { $.fn.breakWords = function() { this.each(function() { if (this.nodeType !== 1) { return; } if (this.currentStyle && typeof this.currentStyle.wordBreak === 'string') { this.runtimeStyle.wordBreak = 'break-all'; } else if (document.createTreeWalker) { var trim = function(str) { str = str.replace(/^\s\s*..
JaeYa_Lee
'jquery' 태그의 글 목록