웹 프론트엔드 JS 튜토리얼 javascript development_javascript 기술의 공백으로 인해 발생하는 오류

javascript development_javascript 기술의 공백으로 인해 발생하는 오류

May 16, 2016 pm 06:16 PM
공간

더 이상 고민하지 말고 먼저 코드를 보여드리겠습니다.

코드 복사 코드는 다음과 같습니다.

🎜>< ;html xmlns="http://www.w3.org/1999/xhtml">


Yiyi Garden






  • ="images/03.jpg" title="그림 3">




코드 복사
코드는 다음과 같습니다. .org/1999/xhtml"> < ;head>
Yiyi Garden<div class="codebody" id="code64936"> <br> <br><div id="win"> <br><ul id="picChange"><li> <img src="/static/imghw/default1.png" data-src="images/bigpic/03.jpg" class="lazy" title="허리 지지대/HY005" alt="javascript development_javascript 기술의 공백으로 인해 발생하는 오류" ><li><img src= "images/bigpic/02.jpg" title="베개 붐 /DB-004"></li> <br><li><img title= "큰 발 보호/HY-001"></li> ; <br></ul> <br><script type="text/javascript"> var pic = document.getElementById('picChange'); var picList = pic.getElementsByTagName("li"); <br>alert(picList[0].firstChild) <br></body> 🎜><br> <br>Firefox와 IE에서 각각 위의 코드 2를 실행하세요. Firefox에 나타나는 것은 [object HTMLImageElement]이고, IE에 나타나는 것은 [object]입니다. 여기서 IE와 Firefox는 모두 picList[ 객체를 간주합니다. 0].firstChild를 개체 개체로 지정합니다. Firefox에서는 HTMLImageElement 유형 개체라는 메시지를 표시하고 IE에서는 자세한 내용을 메시지로 표시하지 않습니다. <br>상위와 하위 작성 방법의 차이점은 들여쓰기와 줄바꿈뿐입니다. IE에서는 동일한 개체로 인식되지만 Firefox에서는 들여쓰기가 다른 개체를 나타냅니다. <br>이 내용을 다시 녹음하겠습니다. 모든 친구들에게 도움이 되기를 바랍니다. 저와 같은 문제를 겪거나 오랫동안 해결책을 찾지 못하는 일이 발생하지 않기를 바랍니다.</li></ul> </div> </div> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">본 웹사이트의 성명</div> <div>본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>인기 기사</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796797907.html" title="<garden> : 정원 재배 - 완전한 돌연변이 가이드" class="phpgenera_Details_mainR4_bottom_title"><garden> : 정원 재배 - 완전한 돌연변이 가이드</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796797130.html" title="<gum> : Bubble Gum Simulator Infinity- 로얄 키를 얻고 사용하는 방법" class="phpgenera_Details_mainR4_bottom_title"><gum> : Bubble Gum Simulator Infinity- 로얄 키를 얻고 사용하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796796771.html" title="KB5055612 수정 방법 Windows 10에 설치되지 않습니까?" class="phpgenera_Details_mainR4_bottom_title">KB5055612 수정 방법 Windows 10에 설치되지 않습니까?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796796926.html" title="Nordhold : Fusion System, 설명" class="phpgenera_Details_mainR4_bottom_title">Nordhold : Fusion System, 설명</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796794243.html" title="Blue Prince : 지하실에가는 방법" class="phpgenera_Details_mainR4_bottom_title">Blue Prince : 지하실에가는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 몇 달 전</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/article.html">더보기</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>핫 AI 도구</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>사실적인 누드 사진을 만들기 위한 AI 기반 앱</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>사진에서 옷을 제거하는 온라인 AI 도구입니다.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>무료로 이미지를 벗다</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI 옷 제거제</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/ai">더보기</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>인기 기사</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796797907.html" title="<garden> : 정원 재배 - 완전한 돌연변이 가이드" class="phpgenera_Details_mainR4_bottom_title"><garden> : 정원 재배 - 완전한 돌연변이 가이드</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796797130.html" title="<gum> : Bubble Gum Simulator Infinity- 로얄 키를 얻고 사용하는 방법" class="phpgenera_Details_mainR4_bottom_title"><gum> : Bubble Gum Simulator Infinity- 로얄 키를 얻고 사용하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796796771.html" title="KB5055612 수정 방법 Windows 10에 설치되지 않습니까?" class="phpgenera_Details_mainR4_bottom_title">KB5055612 수정 방법 Windows 10에 설치되지 않습니까?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796796926.html" title="Nordhold : Fusion System, 설명" class="phpgenera_Details_mainR4_bottom_title">Nordhold : Fusion System, 설명</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796794243.html" title="Blue Prince : 지하실에가는 방법" class="phpgenera_Details_mainR4_bottom_title">Blue Prince : 지하실에가는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 몇 달 전</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/article.html">더보기</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>뜨거운 도구</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/92" title="메모장++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="메모장++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/92" title="메모장++7.3.1" class="phpmain_tab2_mids_title"> <h3>메모장++7.3.1</h3> </a> <p>사용하기 쉬운 무료 코드 편집기</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/93" title="SublimeText3 중국어 버전" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 중국어 버전" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/93" title="SublimeText3 중국어 버전" class="phpmain_tab2_mids_title"> <h3>SublimeText3 중국어 버전</h3> </a> <p>중국어 버전, 사용하기 매우 쉽습니다.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/121" title="스튜디오 13.0.1 보내기" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="스튜디오 13.0.1 보내기" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/121" title="스튜디오 13.0.1 보내기" class="phpmain_tab2_mids_title"> <h3>스튜디오 13.0.1 보내기</h3> </a> <p>강력한 PHP 통합 개발 환경</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="드림위버 CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" class="phpmain_tab2_mids_title"> <h3>드림위버 CS6</h3> </a> <p>시각적 웹 개발 도구</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/500" title="SublimeText3 Mac 버전" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac 버전" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/500" title="SublimeText3 Mac 버전" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac 버전</h3> </a> <p>신 수준의 코드 편집 소프트웨어(SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/ai">더보기</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>뜨거운 주제</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/java-tutorial" title="자바 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">자바 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1664</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>14</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/cakephp-tutor" title="Cakephp 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">Cakephp 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1423</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/laravel-tutori" title="라라벨 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">라라벨 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1318</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>25</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/php-tutorial" title="PHP 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">PHP 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1269</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>29</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/c-tutorial" title="C# 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">C# 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1248</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>24</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/faq/zt">더보기</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/581198.html" title="mysql에서 공백은 무엇을 의미합니까?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202307/20/2023072017155389199.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="mysql에서 공백은 무엇을 의미합니까?" /> </a> <a href="https://www.php.cn/ko/faq/581198.html" title="mysql에서 공백은 무엇을 의미합니까?" class="phphistorical_Version2_mids_title">mysql에서 공백은 무엇을 의미합니까?</a> <span class="Articlelist_txts_time">Jul 20, 2023 pm 05:17 PM</span> <p class="Articlelist_txts_p">MySQL 공백은 키워드, 식별자, 값 및 기타 명령문 요소를 구분하는 데 사용되는 특수 문자입니다. 공백은 SQL 문의 여러 위치에서 사용될 수 있으며 일반적으로 명령문 실행에 영향을 주지 않습니다. 공백의 목적: 1. 키워드와 식별자를 구분하는 데 사용됩니다. 2. 연산자와 값을 구분하는 데 사용됩니다. 3. 함수, 열 및 테이블 별칭을 구분하는 데 사용됩니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/721729.html" title="전각 공백과 반각 공백의 차이점" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/171134190543602.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="전각 공백과 반각 공백의 차이점" /> </a> <a href="https://www.php.cn/ko/faq/721729.html" title="전각 공백과 반각 공백의 차이점" class="phphistorical_Version2_mids_title">전각 공백과 반각 공백의 차이점</a> <span class="Articlelist_txts_time">Mar 25, 2024 pm 12:45 PM</span> <p class="Articlelist_txts_p">전각 공백과 반각 공백의 차이점 워드 프로세싱 소프트웨어를 사용하거나 텍스트 내용을 편집할 때 공백이라는 개념을 접할 때가 있습니다. 공백은 텍스트를 조판하고 서식을 지정하는 데 있어 매우 기본적인 요소이지만, 많은 사람들은 전자 공백과 반자 공백의 차이를 알지 못할 수 있습니다. 일상적인 사용에서 우리는 전각 공백과 반각 공백이 상황에 따라 다른 효과가 있다고 느낄 수 있지만 미묘한 차이를 인식하지 못할 수도 있습니다. 우선, 전각 공백과 반각 공백의 차이는 그들이 차지하는 너비입니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/728592.html" title="Go에서 공백을 올바르게 사용하는 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/171169812310897.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Go에서 공백을 올바르게 사용하는 방법" /> </a> <a href="https://www.php.cn/ko/faq/728592.html" title="Go에서 공백을 올바르게 사용하는 방법" class="phphistorical_Version2_mids_title">Go에서 공백을 올바르게 사용하는 방법</a> <span class="Articlelist_txts_time">Mar 29, 2024 pm 03:42 PM</span> <p class="Articlelist_txts_p">Go 언어는 간단하고 효율적이며 동시성이 뛰어난 프로그래밍 언어입니다. Google에서 개발한 오픈 소스 언어입니다. Go 언어에서는 공백 사용이 매우 중요하며, 이는 코드의 가독성과 유지 관리성을 향상시킬 수 있습니다. 이 글에서는 Go 언어에서 공백을 올바르게 사용하는 방법을 소개하고 구체적인 코드 예제를 제공합니다. 공백을 올바르게 사용해야 하는 이유 프로그래밍 과정에서 공백의 사용은 코드의 가독성과 아름다움을 위해 매우 중요합니다. 공백을 적절하게 사용하면 코드가 더 명확하고 읽기 쉬워집니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/499326.html" title="Vue에서 공백을 바꾸는 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202212/22/2022122209364667962.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Vue에서 공백을 바꾸는 방법" /> </a> <a href="https://www.php.cn/ko/faq/499326.html" title="Vue에서 공백을 바꾸는 방법" class="phphistorical_Version2_mids_title">Vue에서 공백을 바꾸는 방법</a> <span class="Articlelist_txts_time">Dec 22, 2022 am 09:40 AM</span> <p class="Articlelist_txts_p">vue에서 공백을 바꾸는 방법: 1. vue 샘플 파일을 만듭니다. 2. 정규식 "string = string.replace(/\s/g," ");"를 통해 모든 공백을 바꿉니다. (문자열);" 대체된 문자열을 출력하면 됩니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/709616.html" title="전각 공백과 반각 공백의 차이점은 무엇입니까?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202403/15/2024031515492838885.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="전각 공백과 반각 공백의 차이점은 무엇입니까?" /> </a> <a href="https://www.php.cn/ko/faq/709616.html" title="전각 공백과 반각 공백의 차이점은 무엇입니까?" class="phphistorical_Version2_mids_title">전각 공백과 반각 공백의 차이점은 무엇입니까?</a> <span class="Articlelist_txts_time">Mar 15, 2024 pm 03:49 PM</span> <p class="Articlelist_txts_p">차이점: 1. 공백의 표시 너비는 한자의 너비와 동일하며 2바이트를 차지합니다. 입력 시 중국어 입력 방법을 사용해야 하며, 반자 공백의 너비는 한자의 너비의 절반입니다. , 1바이트를 차지하면 스페이스 키만 누르면 입력 가능합니다. 2. 텍스트를 조판할 때 전자 공백은 레이아웃을 더 편안하게 만들고, 반자 공백은 레이아웃을 더 간결하게 만듭니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/706501.html" title="Golang의 공간 교체를 위한 실무 기술 공유" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/000/164/171029250551842.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Golang의 공간 교체를 위한 실무 기술 공유" /> </a> <a href="https://www.php.cn/ko/faq/706501.html" title="Golang의 공간 교체를 위한 실무 기술 공유" class="phphistorical_Version2_mids_title">Golang의 공간 교체를 위한 실무 기술 공유</a> <span class="Articlelist_txts_time">Mar 13, 2024 am 09:15 AM</span> <p class="Articlelist_txts_p">제목: Golang의 공간 대체를 위한 실용적인 기술을 공유합니다. 인터넷의 대중화와 발전으로 인해 프로그램 설계 및 개발이 더욱 중요해졌습니다. 프로그래밍 과정에서 데이터 처리는 매우 중요한 부분입니다. 텍스트 데이터를 처리하다 보면 공백을 교체해야 하는 상황이 자주 발생합니다. 이 글에서는 Golang에서 공백 교체 기술을 구현하는 방법을 공유하고 구체적인 코드 예제를 제공합니다. 공백을 교체해야 하는 이유는 무엇입니까? 공백은 텍스트 데이터에서 흔히 사용되는 특수 문자 중 하나입니다. 공백을 다른 문자로 바꾸거나 제거해야 하는 경우도 있습니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/497285.html" title="PHP에서 연속 공백을 제거하는 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202211/03/2022110310124316257.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHP에서 연속 공백을 제거하는 방법" /> </a> <a href="https://www.php.cn/ko/faq/497285.html" title="PHP에서 연속 공백을 제거하는 방법" class="phphistorical_Version2_mids_title">PHP에서 연속 공백을 제거하는 방법</a> <span class="Articlelist_txts_time">Nov 03, 2022 am 10:16 AM</span> <p class="Articlelist_txts_p">PHP에서 연속 공백을 제거하는 방법: 1. PHP 샘플 파일을 만듭니다. 2. "strip_tags()" 함수를 사용하여 문자열에서 HTML, XML 및 PHP 태그를 제거합니다. 3. "str_replace" 및 " preg_replace" 함수 연속된 공백만 삭제하면 됩니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/470679.html" title="PHP에서 문자열 양쪽 끝의 공백을 제거하는 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202102/20/2021022016173315736.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHP에서 문자열 양쪽 끝의 공백을 제거하는 방법" /> </a> <a href="https://www.php.cn/ko/faq/470679.html" title="PHP에서 문자열 양쪽 끝의 공백을 제거하는 방법" class="phphistorical_Version2_mids_title">PHP에서 문자열 양쪽 끝의 공백을 제거하는 방법</a> <span class="Articlelist_txts_time">Feb 20, 2021 pm 04:22 PM</span> <p class="Articlelist_txts_p">PHP에서 문자열 양쪽 끝의 공백을 제거하는 방법: 1. Trim() 함수를 직접 사용하여 양쪽 끝의 공백을 제거합니다. 이 함수는 문자열 양쪽에서 공백 문자나 기타 미리 정의된 문자를 제거할 수 있습니다. 2. . trtrim() 및 ltrim() 함수를 사용하여 문자열의 오른쪽과 왼쪽에 있는 공백 문자나 기타 미리 정의된 문자를 각각 제거합니다. 구문은 "rtrim(ltrim(string))"입니다. .</p> </div> </div> <a href="https://www.php.cn/ko/web-designer.html" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!</p> </div> <div class="footermid"> <a href="https://www.php.cn/ko/about/us.html">회사 소개</a> <a href="https://www.php.cn/ko/about/disclaimer.html">부인 성명</a> <a href="https://www.php.cn/ko/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1746938719"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <script type='text/javascript' src='/static/js/viewer.min.js?1'></script> <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> <script> document.addEventListener('DOMContentLoaded', function() { const mainNav = document.querySelector('.Article_Details_main1Lmain'); const header = document.querySelector('header'); if (mainNav) { window.addEventListener('scroll', function() { const scrollPosition = window.scrollY; if (scrollPosition > 84) { mainNav.classList.add('fixed'); } else { mainNav.classList.remove('fixed'); } }); } }); </script> </body> </html>