Cách thêm văn bản trong khoảng bằng JavaScript

Điều này đặc biệt hữu ích khi lấy dữ liệu do người dùng cung cấp vì phương thức thoát khỏi các ký tự HTML và ngăn chặn các cuộc tấn công XSS

Bước cuối cùng là sử dụng Node. appendChild để nối nút văn bản vào cuối phần tử con của phần tử

Cách tiếp cận này có thể được sử dụng để nối thêm văn bản vào bất kỳ phần tử nào, chẳng hạn như. g. div, span, đoạn văn, v.v.

Ngoài ra, bạn có thể sử dụng phương thức insertAdjacentText

Nối văn bản vào một phần tử (DIV, SPAN, P) bằng cách sử dụng insertAdjacentText()

Sử dụng phương pháp insertAdjacentText() để nối thêm văn bản vào một phần tử, e. g.

const box = document.getElementById('box');

box.insertAdjacentText('beforeend', ' new text');
1

Phương thức lấy một vị trí và một chuỗi làm tham số và chèn một nút văn bản mới vào vị trí được cung cấp so với phần tử mà nó được gọi trên đó

const box = document.getElementById('box');

box.insertAdjacentText('beforeend', ' new text');

Cách thêm văn bản trong khoảng bằng JavaScript

Phương thức insertAdjacentText nhận 2 tham số sau

  1. const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    2 - vị trí liên quan đến phần tử mà văn bản sẽ được chèn vào. Có thể là một trong 4 điều sau
  • const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    3 - trước chính phần tử đó
  • const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    4 - ngay bên trong phần tử, trước phần tử con đầu tiên của nó
  • const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    5 - ngay bên trong phần tử, sau phần tử con cuối cùng của nó
  • const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    6 - sau chính phần tử đó
  1. const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    7 - chuỗi để tạo một nút văn bản mới để chèn vào vị trí đã cho

Bạn có thể sử dụng phương pháp

const box = document.getElementById('box');

box.insertAdjacentText('beforeend', ' new text');
8 để nối thêm văn bản vào một phần tử thuộc bất kỳ loại nào, e. g. div, span, đoạn văn

Bạn chọn cách tiếp cận nào là vấn đề sở thích cá nhân. Tôi sẽ sử dụng phương pháp

const box = document.getElementById('box');

box.insertAdjacentHTML(
  'beforeend',
  ' New html',
);
1 vì nó ngắn gọn và trực tiếp hơn

Nối HTML vào một phần tử (DIV, SPAN, P) trong JavaScript

Nếu bạn cần nối thêm

const box = document.getElementById('box');

box.insertAdjacentHTML(
  'beforeend',
  ' New html',
);
2 vào một phần tử chứ không chỉ văn bản, hãy sử dụng phương thức
const box = document.getElementById('box');

box.insertAdjacentHTML(
  'beforeend',
  ' New html',
);
3

const box = document.getElementById('box');

box.insertAdjacentHTML(
  'beforeend',
  ' New html',
);

Cách thêm văn bản trong khoảng bằng JavaScript

Phương thức insertAdjacentHTML() nhận 2 tham số sau

  • const box = document.getElementById('box');
    
    box.insertAdjacentText('beforeend', ' new text');
    
    2 - vị trí liên quan đến phần tử mà HTML sẽ được chèn vào. Có thể là một trong những điều sau đây

    • const box = document.getElementById('box');
      
      box.insertAdjacentText('beforeend', ' new text');
      
      3 - trước chính phần tử đó
    • const box = document.getElementById('box');
      
      box.insertAdjacentText('beforeend', ' new text');
      
      4 - ngay bên trong phần tử, trước phần tử con đầu tiên của nó
    • const box = document.getElementById('box');
      
      box.insertAdjacentText('beforeend', ' new text');
      
      5 - ngay bên trong phần tử, sau phần tử con cuối cùng của nó
    • const box = document.getElementById('box');
      
      box.insertAdjacentText('beforeend', ' new text');
      
      6 - sau chính phần tử đó
  • const box = document.getElementById('box');
    
    box.insertAdjacentHTML(
      'beforeend',
      ' New html',
    );
    
    9 - chuỗi được phân tích dưới dạng HTML và được chèn vào DOM

Cần lưu ý rằng bạn không nên thêm HTML từ đầu vào do người dùng tạo mà không thoát nó

Trong ví dụ này, chúng tôi đã chèn văn bản ngay bên trong phần tử div, sau phần tử con cuối cùng của nó, nhưng bạn có thể thay đổi đối số đầu tiên tùy thuộc vào trường hợp sử dụng của bạn

Làm cách nào để thêm văn bản bên trong khoảng trong JavaScript?

Nếu bạn cần thêm hoặc thêm văn bản vào nội dung hiện có của phần tử span, hãy hãy sử dụng phương thức insertAdjacentText để thay thế. Đã sao chép. const span = tài liệu. getElementById('span'); .

Làm cách nào để viết span trong JavaScript?

Thẻ bằng cách sử dụng thuộc tính id hoặc lớp . Thẻ

Làm cách nào để bạn có được văn bản được viết bên trong phần tử span?

Sử dụng thuộc tính textContent để lấy văn bản của phần tử span , e. g. văn bản const = nhịp. văn bảnnội dung. Thuộc tính textContent sẽ trả về nội dung văn bản của khoảng và hậu duệ của nó.

Làm cách nào để thêm văn bản khoảng cách bằng JQuery?

jQuery. Đặt giá trị trong một khoảng thời gian .
<đầu>
Đặt giá trị trong một khoảng bằng cách sử dụng JQuery. </ tiêu đề></div> <div></head>.</div> <div><body></div> </div></p></td></tr></table> <script async src="/dist/js/lazyhtml.min.js" crossorigin="anonymous"></script> <div class="lazyhtml" data-lazyhtml> <script type="text/lazyhtml"> <div class="youtubeVideo"><h3>Video liên quan</h3> <iframe width="560" height="315" src="https://www.youtube.com/embed/r0wuVG4L8Fo?controls=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"allowfullscreen></iframe> </div> </script> </div> <div class="tags pt-3"> <a href="https://toanthua.com/tags/programming" class="tag-link">programming</a> <a href="https://toanthua.com/tags/javascript" class="tag-link">javascript</a> </div> <div class="post-tools"> <button data-postid="cach-them-van-ban-trong-khoang-bang-javascript" class="btn btn-answerModalBox"><img class="mr-1" alt="Cách thêm văn bản trong khoảng bằng JavaScript" src="/dist/images/svg/messages_16.svg">Reply</button> <button data-postid="cach-them-van-ban-trong-khoang-bang-javascript" data-vote="up" class="btn btn-doVote"><img class="mr-1" alt="Cách thêm văn bản trong khoảng bằng JavaScript" src="/dist/images/svg/face-smile_16.svg">3</button> <button data-postid="cach-them-van-ban-trong-khoang-bang-javascript" data-vote="down" class="btn btn-doVote"><img class="mr-1" alt="Cách thêm văn bản trong khoảng bằng JavaScript" src="/dist/images/svg/poo_16.svg">1</button> <button class="btn"><img class="mr-1" alt="Cách thêm văn bản trong khoảng bằng JavaScript" src="/dist/images/svg/facebook_16.svg">Chia sẻ</button> </div> </div><!-- end question-post-body --> </div><!-- end question-post-body-wrap --> </div><!-- end question --> <div id="answers_cach-them-van-ban-trong-khoang-bang-javascript" class="answers"> </div><!-- end answer-wrap --> <div class="entryFooter"> <div class="footerLinkAds"></div> <div class="footerRelated"><div class="postRelatedWidget"> <h2>Bài Viết Liên Quan</h2> <div class="questions-snippet layoutNews border-top border-top-gray"> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/nha-hang-can-bao-nhieu-dau-bep"><img src="https://ap.cdnki.com/r_nha-hang-can-bao-nhieu-dau-bep---190616bc7b15d728d7131a2a8f68aaae.webp" alt="Nhà hàng cần bao nhiêu đầu bếp?"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/nha-hang-can-bao-nhieu-dau-bep">Nhà hàng cần bao nhiêu đầu bếp?</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/lam-the-nao-de-ban-lam-phang-mot-mang-nhieu-chieu"><img src="https://ap.cdnki.com/r_lam-the-nao-de-ban-lam-phang-mot-mang-nhieu-chieu---915382440025b750f7a36953b9b468c3.webp" alt="Làm thế nào để bạn làm phẳng một mảng nhiều chiều?"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/lam-the-nao-de-ban-lam-phang-mot-mang-nhieu-chieu">Làm thế nào để bạn làm phẳng một mảng nhiều chiều?</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/mongodb-trong-nosql"><img src="https://ap.cdnki.com/r_mongodb-trong-nosql---426999de8e0105aa17798f687f577d62.webp" alt="Mongodb trong nosql"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/mongodb-trong-nosql">Mongodb trong nosql</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/tuong-tuong-kich-hoat-php"><img src="https://ap.cdnki.com/r_tuong-tuong-kich-hoat-php---d84b72223b029cc457915239cff97813.webp" alt="Tưởng tượng kích hoạt PHP"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/tuong-tuong-kich-hoat-php">Tưởng tượng kích hoạt PHP</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/chuyen-doi-cau-truc-matlab-sang-python-dict"><img src="https://ap.cdnki.com/r_chuyen-doi-cau-truc-matlab-sang-python-dict---abcf8c896bcde5158c8a247484fe6198.webp" alt="Chuyển đổi cấu trúc MATLAB sang Python dict"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/chuyen-doi-cau-truc-matlab-sang-python-dict">Chuyển đổi cấu trúc MATLAB sang Python dict</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/shania-twain-dublin-2023-gia"><img src="https://ap.cdnki.com/r_shania-twain-dublin-2023-gia---8e85d76cabb2c834e613d066f3484d2f.webp" alt="Shania Twain Dublin 2023 giá"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/shania-twain-dublin-2023-gia">Shania Twain Dublin 2023 giá</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/python-hands-on-fresco-play"><img src="https://ap.cdnki.com/r_python-hands-on-fresco-play---a456bb36d46d95e9166ff5956b81010f.webp" alt="Python Hands on Fresco Play"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/python-hands-on-fresco-play">Python Hands on Fresco Play</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/onclick-chuyen-trang-html"><img src="https://ap.cdnki.com/r_onclick-chuyen-trang-html---a50083476f0a31eb3b8adc62a0da6e49.webp" alt="Onclick chuyển trang html"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/onclick-chuyen-trang-html">Onclick chuyển trang html</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/tuy-chon-trong-excel-2013-o-dau"><img src="https://ap.cdnki.com/r_tuy-chon-trong-excel-2013-o-dau---bc923d09659644b6c91ef3354d1adaf6.webp" alt="Tùy chọn trong Excel 2013 ở đâu?"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/tuy-chon-trong-excel-2013-o-dau">Tùy chọn trong Excel 2013 ở đâu?</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> <div class="media media-card rounded-0 shadow-none mb-0 bg-transparent py-4 px-0 border-bottom border-bottom-gray"> <div class="media-image"> <a href="/mbstring-php-mo-rong-macos"><img src="https://ap.cdnki.com/r_mbstring-php-mo-rong-macos---feca2ebf5e4884863da99c20e54fc2bf.webp" alt="Mbstring PHP mở rộng macos"></a> </div> <div class="media-body"> <h5 class="mb-2 fw-medium"><a href="/mbstring-php-mo-rong-macos">Mbstring PHP mở rộng macos</a></h5> <p class="mb-2 truncate lh-20 fs-15"></p> <div class="media media-card questionTags user-media px-0 border-bottom-0 pb-0"> <div class="tags"> </div> </div> </div> </div><!-- end media --> </div> </div></div> <div class="footerRelated"></div> </div> </div> </div><!-- end question-main-bar --> </div><!-- end col-lg-9 --> <div class="col-right"> <div class="sidebar"> <div class="card card-item"> <div class="card-body"> <h3 class="fs-14 text-uppercase pb-3">MỚI CẬP NHẬP</h3> <div class="divider"><span></span></div> <div class="sidebar-questions pt-3"> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/dau-lung-dau-nguc-la-dau-hieu-gi-nam-2024">Đau lưng đau ngực là dấu hiệu gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">7 phúts trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/CommonplaceMathematician" class="author">CommonplaceMathematician</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/viet-nam-co-nhung-san-bay-quoc-te-nao-nam-2024">Việt nam có những sân bay quốc tế nào năm 2024</a></h5> <small class="meta"> <span class="pr-1">21 phúts trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/ConstitutionalMango" class="author">ConstitutionalMango</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/top-50-nguoi-phu-nu-quyen-luc-nhat-the-gioi-nam-2024">Top 50 người phụ nữ quyền lực nhất thế giới năm 2024</a></h5> <small class="meta"> <span class="pr-1">35 phúts trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/DogmaticHostility" class="author">DogmaticHostility</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/che-do-ke-toan-don-vi-su-nghiep-nam-2024">Chế độ kế toán đơn vị sự nghiệp năm 2024</a></h5> <small class="meta"> <span class="pr-1">58 phúts trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/MachoPlethora" class="author">MachoPlethora</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/chung-minh-nhan-dan-con-goi-la-gi-nam-2024">Chứng minh nhân dân còn gọi là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/StirringCynicism" class="author">StirringCynicism</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/ta-van-lop-7-loai-cay-em-yeu-nam-2024">Tả văn lớp 7 loài cây em yêu năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/LinearMotto" class="author">LinearMotto</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/su-dung-binh-oxy-trong-truong-hop-nao-nam-2024">Sử dụng bình oxy trong trường hợp nào năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/FollowingInstruction" class="author">FollowingInstruction</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/phieu-tien-mat-nhan-them-bao-hiem-la-gi-nam-2024">Phiếu tiền mặt nhận thêm bảo hiểm là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">2 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/Tax-freeProspectus" class="author">Tax-freeProspectus</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/bai-tap-ly-hoc-nang-cao-lop-9-nam-2024">Bài tập lý học nâng cao lớp 9 năm 2024</a></h5> <small class="meta"> <span class="pr-1">2 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/UnidentifiedRatification" class="author">UnidentifiedRatification</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/boi-duong-nghiep-vu-su-pham-la-gi-nam-2024">Bồi dưỡng nghiệp vụ sư phạm là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">2 giờs trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/LateralRecipe" class="author">LateralRecipe</a> </small> </div> </div><!-- end media --> </div><!-- end sidebar-questions --> </div> </div><!-- end card --> <div class="card card-item"> <div class="card-body"> <h3 class="fs-14 text-uppercase pb-3">Xem Nhiều</h3> <div class="divider"><span></span></div> <div class="sidebar-questions pt-3"> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/cau-ban-lam-bai-tap-chua-co-chuc-nang-gi-nam-2024">Câu bạn làm bài tập chưa có chức năng gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">5 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/Law-abidingMartin" class="author">Law-abidingMartin</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/yeu-to-nuoc-trong-kien-truc-canh-quan-la-gi-nam-2024">Yeu tố nước trong kiến trúc cảnh quan là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/PreservingWiring" class="author">PreservingWiring</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/lam-the-nao-de-het-quang-tham-mat-bam-sinh-nam-2024">Làm thế nào để hết quầng thâm mắt bẩm sinh năm 2024</a></h5> <small class="meta"> <span class="pr-1">5 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/TransparentSubcommittee" class="author">TransparentSubcommittee</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/an-toan-thong-tin-va-he-thong-la-gi-nam-2024">An toàn thông tin và hệ thống là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">4 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/AppreciableNervousness" class="author">AppreciableNervousness</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/loi-file-word-2010-bi-ke-o-vuong-khi-mo-nam-2024">Lỗi file word 2010 bị kẻ ô vuông khi mở năm 2024</a></h5> <small class="meta"> <span class="pr-1">3 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/ElderlyWoodward" class="author">ElderlyWoodward</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/kho-chuyen-hang-di-quoc-te-tieng-anh-la-gi-nam-2024">Kho chuyển hàng đi quốc tế tiếng anh là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">5 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/StrongEmperor" class="author">StrongEmperor</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/chinh-sach-ke-hoach-hoa-gia-dinh-2023-nam-2024">Chính sách kế hoạch hóa gia đình 2023 năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/FinancialAllotment" class="author">FinancialAllotment</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/chay-mau-cam-la-bi-benh-gi-nam-2024">Chảy máu cam là bị bệnh gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">4 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/OliveBlossom" class="author">OliveBlossom</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/dau-tu-trung-quoc-vao-tay-nam-thai-binh-duong-nam-2024">Dau tư trung quốc vào tây nam thái bình dương năm 2024</a></h5> <small class="meta"> <span class="pr-1">3 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/OversizeAirtime" class="author">OversizeAirtime</a> </small> </div> </div><!-- end media --> <div class="media media-card media--card media--card-2"> <div class="media-body"> <h5><a href="https://toanthua.com/he-had-two-trains-but-they-were-armored-la-gi-nam-2024">He had two trains but they were armored là gì năm 2024</a></h5> <small class="meta"> <span class="pr-1">1 ngàys trước</span> <span class="pr-1">. bởi</span> <a href="https://toanthua.com/author/ItinerantDominion" class="author">ItinerantDominion</a> </small> </div> </div><!-- end media --> </div><!-- end sidebar-questions --> </div> </div><!-- end card --> </div><!-- end sidebar --> </div><!-- end col-lg-3 --> </div><!-- end row --> </div><!-- end container --> </section><!-- end question-area --> <!-- ================================ END QUESTION AREA ================================= --> <script>var questionId ='cach-them-van-ban-trong-khoang-bang-javascript'</script> <script>var postTime ='2023-01-26T08:57:44.026Z'</script> <script>var siteDomain ='toanthua.com'</script> <script type="text/javascript" src="https://toanthua.com/dist/js/pages/comment.js"></script> <!-- ================================ END FOOTER AREA ================================= --> <section class="footer-area pt-80px bg-dark position-relative"> <span class="vertical-bar-shape vertical-bar-shape-1"></span> <span class="vertical-bar-shape vertical-bar-shape-2"></span> <span class="vertical-bar-shape vertical-bar-shape-3"></span> <span class="vertical-bar-shape vertical-bar-shape-4"></span> <div class="container"> <div class="row"> <div class="col-lg-3 responsive-column-half"> <div class="footer-item"> <h3 class="fs-18 fw-bold pb-2 text-white">Chúng tôi</h3> <ul class="generic-list-item generic-list-item-hover-underline pt-3 generic-list-item-white"> <li><a href="/about.html">Giới thiệu</a></li> <li><a href="/contact.html">Liên hệ</a></li> <li><a href="/contact.html">Tuyển dụng</a></li> <li><a href="/contact.html">Quảng cáo</a></li> </ul> </div><!-- end footer-item --> </div><!-- end col-lg-3 --> <div class="col-lg-3 responsive-column-half"> <div class="footer-item"> <h3 class="fs-18 fw-bold pb-2 text-white">Điều khoản</h3> <ul class="generic-list-item generic-list-item-hover-underline pt-3 generic-list-item-white"> <li><a href="/privacy-statement.html">Điều khoản hoạt động</a></li> <li><a href="/terms-and-conditions.html">Điều kiện tham gia</a></li> <li><a href="/privacy-statement.html">Quy định cookie</a></li> </ul> </div><!-- end footer-item --> </div><!-- end col-lg-3 --> <div class="col-lg-3 responsive-column-half"> <div class="footer-item"> <h3 class="fs-18 fw-bold pb-2 text-white">Trợ giúp</h3> <ul class="generic-list-item generic-list-item-hover-underline pt-3 generic-list-item-white"> <li><a href="/contact.html">Hướng dẫn</a></li> <li><a href="/contact.html">Loại bỏ câu hỏi</a></li> <li><a href="/contact.html">Liên hệ</a></li> </ul> </div><!-- end footer-item --> </div><!-- end col-lg-3 --> <div class="col-lg-3 responsive-column-half"> <div class="footer-item"> <h3 class="fs-18 fw-bold pb-2 text-white">Mạng xã hội</h3> <ul class="generic-list-item generic-list-item-hover-underline pt-3 generic-list-item-white"> <li><a href="#"><i class="fab fa-facebook-f mr-1"></i> Facebook</a></li> <li><a href="#"><i class="fab fa-twitter mr-1"></i> Twitter</a></li> <li><a href="#"><i class="fab fa-linkedin mr-1"></i> LinkedIn</a></li> <li><a href="#"><i class="fab fa-instagram mr-1"></i> Instagram</a></li> </ul> </div><!-- end footer-item --> </div><!-- end col-lg-3 --> </div><!-- end row --> </div><!-- end container --> <hr class="border-top-gray my-3"> <div class="container"> <div class="row align-items-center pb-4 copyright-wrap"> <div class="col-6"> <img src ="/dist/images/dmca_protected_sml.png"/> </div> <!-- end col-lg-6 --><div class="col-6"> <div class="copyright-desc text-right fs-14"> <div>Bản quyền © 2024 <a href="https://toanthua.com"></a> Inc.</div> </div> </div><!-- end col-lg-6 --> </div><!-- end row --> </div><!-- end container --> </section><!-- end footer-area --> <!-- ================================ END FOOTER AREA ================================= --> <!-- template js files --> <!-- start back to top --> <div id="back-to-top" data-toggle="tooltip" data-placement="top" title="Lên đầu trang"> <img alt="" src="/dist/images/svg/arrow-up_20.svg"> </div> <!-- end back to top --> <script src="https://toanthua.com/dist/js/bootstrap.bundle.min.js"></script> <script src="https://toanthua.com/dist/js/sweetalert2.js"></script> <script src="https://toanthua.com/dist/js/moment.js"></script> <script src="https://toanthua.com/dist/js/main.js?v=1"></script> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> </body> </html>