Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript
JavaScript
  1. ฟังก์ชัน TypedArray.copyWithin() ใน JavaScript

    เมธอด copyWithin() ของ TypedArray เมธอด copyWithin() ของอ็อบเจกต์ TypedArray ใช้คัดลอกลำดับของอิลิเมนต์ภายในอาร์เรย์เดียวกัน (in-place) โดยไม่เปลี่ยนขนาดของอาร์เรย์ คล้ายกับ Array.prototype.copyWithin() แต่ทำงานกับ TypedArray (เช่น Int32Array, Float64Array, Uint8Array, ฯลฯ) รูปแบบไวยากรณ์ (Syntax)

  2. ฟังก์ชัน TypedArray.entries() ใน JavaScript

    ฟังก์ชัน entries() ของ TypedArray คืนค่า Iterator object ที่มี คู่ [index, value] สำหรับแต่ละองค์ประกอบใน TypedArray ไวยากรณ์ typedArray.entries() ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    <script type=&

  3. ฟังก์ชัน TypedArray.every() ใน JavaScript

    ฟังก์ชัน every() ของ TypedArray ทดสอบว่า ทุกองค์ประกอบ ผ่านเงื่อนไขที่ระบุใน callback function หรือไม่ คืนค่า true หากทุกตัวผ่าน, false หากมีอย่างน้อย 1 ตัวไม่ผ่าน ไวยากรณ์ typedArray.every(callbackFn[, thisArg]) ตัวอย่าง: ไม่ผ่านเงื่อนไข <html> <head>    <title>JavaScr

  4. ฟังก์ชัน TypedArray.fill() ใน JavaScript

    ฟังก์ชัน fill() ของ TypedArray ใช้ เติมค่าคงที่ ลงในช่วงของอาเรย์ (หรือทั้งอาเรย์) แทนที่ค่าเดิม ไวยากรณ์ typedArray.fill(value[, start[, end]]) ตัวอย่าง <html> <head>    <title>JavaScript Array fill Method</title> </head> <body>    <scrip

  5. ฟังก์ชัน Set.values() ใน JavaScript

    ฟังก์ชัน values() ของออบเจกต์ Set คืนค่า Iterator object ที่มี ค่า (values) ทั้งหมดใน Set ตามลำดับที่เพิ่มเข้าไป (ใน Set คีย์และค่าเหมือนกัน) ไวยากรณ์ setObj.values() ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>   &nb

  6. คุณสมบัติ SharedArrayBuffer.byteLength ใน JavaScript

    คุณสมบัติ byteLength ของ SharedArrayBuffer คืนค่า ขนาดในหน่วยไบต์ (unsigned 32-bit integer) ของบัฟเฟอร์ที่แบ่งปันได้ ไวยากรณ์ sharedArrayBuffer.byteLength ตัวอย่าง <html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascri

  7. ฟังก์ชัน parseInt() ใน JavaScript

    ฟังก์ชัน parseInt() แปลงสตริงให้เป็น จำนวนเต็ม (integer) ในระบบเลขฐานที่ระบุ (radix 2-36) ไวยากรณ์ parseInt(string[, radix]) ตัวอย่าง: ระบบเลขฐานต่างๆ <html> <head>    <title>JavaScript Example</title> </head> <body>    <script type="

  8. ฟังก์ชัน parseFloat() ใน JavaScript

    ฟังก์ชัน parseFloat() แปลงสตริงให้เป็น จำนวนทศนิยม (floating-point number) อ่านตัวเลขจากต้นสตริงจนกว่าจะเจออักขระที่ไม่ใช่ตัวเลข ไวยากรณ์ parseFloat(string) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    <scr

  9. ฟังก์ชัน isNaN() ใน JavaScript

    ฟังก์ชัน isNaN() ตรวจสอบว่าค่าที่ให้มาคือ NaN (Not-a-Number) หรือไม่ คืนค่า true หากเป็น NaN, false หากเป็นตัวเลขปกติ ไวยากรณ์ isNaN(value) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    <script type="te

  10. ฟังก์ชัน isFinite() ใน JavaScript

    ฟังก์ชัน isFinite() ตรวจสอบว่าค่าที่ให้มาคือ จำนวนจำกัด (finite number) หรือไม่ คืนค่า true หากเป็นจำนวนจำกัด, false หากเป็น Infinity, -Infinity, NaN หรือไม่ใช่ตัวเลข ไวยากรณ์ isFinite(value) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head>

  11. ฟังก์ชัน eval() ใน JavaScript

    ฟังก์ชัน eval() ประมวลผล สตริงที่เป็นโค้ด JavaScript และรันมันทันที คืนค่าผลลัพธ์ของโค้ดนั้น ไวยากรณ์ eval(string) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    <script type="text/javascript"> &

  12. ฟังก์ชัน encodeURIComponent() ใน JavaScript

    ฟังก์ชัน encodeURIComponent() ใช้เข้ารหัส (encode) ส่วนประกอบของ URI (component) โดยแทนที่ ทุกอักขระ ยกเว้นอักขระ alphanumeric และ - _ . ! ~ * ( ) ด้วยรูปแบบ %xx ไวยากรณ์ encodeURIComponent(uriComponent) ตัวอย่าง <html> <head>    <title>JavaScript Example</title>

  13. ฟังก์ชัน encodeURI() ใน JavaScript

    ฟังก์ชัน encodeURI() ใช้เข้ารหัส (encode) URI ทั้งหมด โดยแทนที่อักขระพิเศษด้วยรูปแบบ %xx ยกเว้น reserved characters ที่มีความหมายพิเศษใน URI ไวยากรณ์ encodeURI(uri) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    

  14. ฟังก์ชัน decodeURIComponent() ใน JavaScript

    ฟังก์ชัน decodeURIComponent() ใช้ถอดรหัส (decode) URI component ที่เข้ารหัสแล้ว กลับเป็นสตริงต้นฉบับ ไวยากรณ์ decodeURIComponent(encodedURI) ตัวอย่าง <html> <head>    <title>JavaScript Example</title> </head> <body>    <script type="t

  15. ฟังก์ชัน Number.toString() ใน JavaScript

    ฟังก์ชัน toString() ของออบเจ็กต์ Number จะรับตัวเลขและคืนค่าการแทนค่าในรูปแบบสตริงของตัวเลขที่ให้มาไวยากรณ์รูปแบบการใช้งานคือดังนี้num.toString(num);ตัวอย่าง<html> <head>    <title>ตัวอย่าง JavaScript</title> </head> <body>    <script type=&

  16. ฟังก์ชัน Number.valueOf() ใน JavaScript

    ฟังก์ชัน valueOf() จะรับออบเจ็กต์ Number และคืนค่าตัวเลข (ชนิดข้อมูลดั้งเดิม) ที่ถูกห่อหุ้มโดยออบเจ็กต์ที่ให้มาไวยากรณ์รูปแบบการใช้งานคือดังนี้num.valueOf()ตัวอย่าง<html> <head>    <title>ตัวอย่าง JavaScript</title> </head> <body>    <script

  17. คุณสมบัติ Set.size ใน JavaScript

    คุณสมบัติ size ของออบเจ็กต์ Set จะคืนค่าตัวเลขที่แทนจำนวนองค์ประกอบในออบเจ็กต์ Set ปัจจุบันไวยากรณ์รูปแบบการใช้งานคือดังนี้setObj.sizeตัวอย่าง<html> <head>    <title>ตัวอย่าง JavaScript</title> </head> <body>    <script type="text/javas

  18. ฟังก์ชัน Set.add() ใน JavaScript

    ฟังก์ชัน add() ของออบเจ็กต์ Set จะรับค่าและเพิ่ม/ต่อท้ายเข้าไปในออบเจ็กต์ Set ปัจจุบันไวยากรณ์รูปแบบการใช้งานคือดังนี้setObj.add()ตัวอย่าง<html> <head>    <title>ตัวอย่าง JavaScript</title> </head> <body>    <script type="text/javascrip

  19. ระบบโทรศัพท์มือถือแบบทั่วไป (UMTS)

    ระบบโทรคมนาคมเคลื่อนที่แบบทั่วไป (Universal Mobile Telecommunications System - UMTS) เป็นระบบเซลลูลาร์มือถือรุ่นที่ 3 (3G) แบบแบนด์กว้าง และแบบแพ็กเก็ต ที่พัฒนามาจากมาตรฐาน GSM ข้อกำหนดของ UMTS ครอบคลุมระบบเครือข่ายทั้งหมด รวมถึงเครือข่ายการเข้าถึงวิทยุ เครือข่ายแกน และการยืนยันตัวตนของผู้ใช้คุณสมบั

  20. ฟังก์ชัน Set.clear() ใน JavaScript

    ฟังก์ชัน clear() ของออบเจ็กต์ Set จะลบองค์ประกอบทั้งหมดออกจากออบเจ็กต์ Set ปัจจุบันไวยากรณ์รูปแบบการใช้งานคือดังนี้setObj.clear()ตัวอย่าง<html> <head>    <title>ตัวอย่าง JavaScript</title> </head> <body>    <script type="text/javascript

Total 5941 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:179/298  20-คอมพิวเตอร์/Page Goto:1 173 174 175 176 177 178 179 180 181 182 183 184 185