Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bạn có thể tải về thư viện JavaScript jQuery mới nhất hoặc chỉ đơn giản là kết nối với nó qua Internet. Ví dụ sau đây sẽ kết nối jQuery từ Web. Bắt đầu bằng cách tạo ra một trang web trống, như sauTrong phần BODY của trang, chúng ta hãy thêm một số nội dung. | HTML5 JAVASCRIPT MODEL 235 You can either download the latest jQuery JavaScript library or simply connect to it over the Internet. The following example will connect jQuery from the Web. Start by creating an empty web page as follows. DOCTYPE html html lang en head 1.1 head 1.2 body 1.3 body 1.4 html In the BODY section of the page let s add some content. section id container article class article h1 A Christmas Carol h1 p class thebody Marley was dead to begin with. There is no doubt whatever about that. The register of his burial was signed by the clergyman the clerk the undertaker and the chief mourner. Scrooge signed it. And Scrooge s name was good upon Change for anything he chose to put his hand to. p ul class actions ul article article class article h1 David Copperfield h1 p class thebody Whether I shall turn out to be the hero of my own life or whether that station will be held by anybody else these pages must show. To begin my life with the beginning of my life I record that I was born as I have been informed and believe on a Friday at twelve o clock at night. It was remarked that the clock began to strike and I began to cry simultaneously. p ul class actions ul article section When you preview this page you will see that there is no formatting or interaction. What you have is a list of Charles Dickens books followed by the opening paragraph. This amount of content will get difficult to read if you have lots of entries to skim through. Using a little jQuery you can insert a show hide action to show and hide the opening paragraph see Figure 5.14 . 236 HTML5 JAVASCRIPT MODEL A Christmas Carol Marley was dead to begin with There is no doubt whatever about that The register of his burial was signed by the clergyman the clerk the undertaker and the chief mourner Scrooge signed it. And Scrooge s name was good upon Change for anything he chose to put his hand to. Read HKfe David Copperfield Read Hide A Tale of Two Cities gẹad Hiốe Bleak House LONDON. Michaelmas .