하지만 위 코드는 원하는 대로 동작하지 않는다. 왜냐하면 jQuery의 셀렉터는 항상 객체를 반환하기 때문에 언제나 참으로 동작을 하게 된다. 엘리먼트가 존재하지 않은 경우에도 빈 객체를 반환하기 때문에 위 코드로는 존재 여부를 체크할 수 없고, 다음의 코드를 사용해야 한다.
length 특성을 사용하면 엘리먼트가 존재하지 않은 경우 0를 반환함므로 존재여부를 제대로 체크할 수 있다.
Companion.JS (pronounced Companion dot JS or CJS) is a Javascript debugger for IE.
The current version is 0.5.
Companion.JS adds the following features to IE :
Download the installer, guaranteed spyware/malware free and packaged with a straightforward and complete un-installer.
(Download zipped intaller for people unable to download .exe files due to proxy limitations)
To be able to use Companion.JS you'll need to have a Microsoft script
debugger installed. There are many cases where you already have this
component install. To check if you need it see Installing Companion.JS for details.Here are some screenshots :

In the top-left corner the notifying panel which pops-up when an error occurs in the current page if the Companion.JS panel is not open. At the bottom of the page...



'어! 이게 뭐지...' 너무 놀라서 눈을 의심하며 다시 자세히 보니 이씨플라자 코리아 사이트 개편전 화면과 '해외 바이어를 찾아주는 이씨플라자 사이트'라는 제목으로 사이트를 소개하고 있었다.
예전에는 많은 비용을 들여서 해외 바이어 리스트를 구매해야만 했는데 이제는 인터넷에서 쉽게 바이어를 발굴할 수 있는 시대가 되었다는 내용을 설명하기 위해서 이씨플라자를 인용한 거다. 뜻하지 않은 곳에서 만난 이씨플라자 , 너무 반가웠다.


|
495 400 | |
-30 days today : 102 |
댓글을 달아 주세요