Latest web development tutorials
×

JavaScript & HTML DOM คู่มืออ้างอิง

ภาพรวม

JavaScript วัตถุ

JavaScript Array วัตถุ JavaScript Boolean วัตถุ JavaScript Date วัตถุ JavaScript Math วัตถุ JavaScript Number วัตถุ JavaScript String วัตถุ JavaScript RegExp วัตถุ JavaScript อสังหาริมทรัพย์ทั่วโลก / ฟังก์ชั่น JavaScript ผู้ประกอบการ

Browser วัตถุ

Window วัตถุ Navigator วัตถุ Screen วัตถุ History วัตถุ Location วัตถุ

DOM วัตถุ

HTML DOM Document วัตถุ HTML DOM วัตถุธาตุ HTML DOM แอตทริบิวต์วัตถุ HTML DOM วัตถุที่จัดกิจกรรม

HTML วัตถุ

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

วิธี HTML DOM isSupported

องค์ประกอบอ้างอิงวัตถุ วัตถุธาตุ

ตัวอย่าง

การวิเคราะห์องค์ประกอบปุ่มสนับสนุนรุ่น 2.0 คุณสมบัติเคอร์เนล:

var item=document.getElementsByTagName("BUTTON")[0];
item.isSupported("Core","2.0");

เอาท์พุท:

true

ลอง»

ความหมายและการใช้งาน

isSupported () วิธีการที่ใช้ในการตรวจสอบว่าโหนดปัจจุบันสนับสนุนคุณลักษณะ


สนับสนุนเบราว์เซอร์

Internet ExplorerFirefoxOperaGoogle ChromeSafari

เบราว์เซอร์ที่สำคัญทั้งหมดสนับสนุนวิธีการ isSupported

หมายเหตุ: Internet Explorer 8 และรุ่นก่อนหน้า IE ไม่สนับสนุนวิธีการนี้


ไวยากรณ์

node.isSupported(feature,version)

พารามิเตอร์

参数 类型 描述
feature String 必须。定义了你想要检查是否支持的特性
version String 可选。定义了你想检查是否支持的版本。

ราคาย้อนกลับ

类型 描述
Boolean 如果支持该特性返回 true, 否则返回false。

รายละเอียดทางเทคนิค

รุ่น DOM ระดับแกนวัตถุ 2 โหนด


องค์ประกอบอ้างอิงวัตถุ วัตถุธาตุ