ทำความรู้จักกับ jQuery ว่ามันคืออะไร

| ไอที | JavaScript | 4983

ทำความรู้จักกับ jQuery ว่ามันคืออะไร

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

jQuery ก็คือ JavaScript library
jQuery ทำให้การทำงานง่ายขึ้น ด้วยการรวบรวม JavaScript แล้วทำให้ใช้งานง่ายขึ้น อย่างเช่น เรามี id ที่ชื่อว่า testJQ

ถ้าเราใช้ JavaScript เขียน จะได้ดังนี้
document.getElementById("testJQ")
แต่ถ้าเราใช้ jQuery เราก็ใช้แบบนี้
$("#testJQ")

ข้อดีของ jQuery

jQuery มีขนาดเล็ก
jQuery ทำงานได้รวดเร็ว
jQuery ใช้งานได้ง่าย
jQuery เขียนโค้ดได้สั้น
jQuery มีความสามารถในการทำงานแบบ ajax
jQuery มีส่วนเสริมอื่น ๆ มากมาย

ในปัจจุบัน web application มากมายต่างก็ใช้ jQuery เพื่อช่วยให้การทำงานสะดวก รวดเร็วขึ้น นอกจากนี้ jQuery ยังมีผลิตภัณฑ์อื่น ๆ ออกมาอีกหลายอย่าง อย่างเช่น jQueryMobile, jQuery UI

ดูรายละเอียดอื่น ๆ ได้ที่ http://jquery.com/

comments




เว็บเพื่อนบ้าน
DoesystemDevcodeMathMySelfHowToClicksBlogJavaExample