6
JavaScript - ไม่สามารถตั้งค่าคุณสมบัติของ undefined
รหัสของฉัน: var a = "1", b = "hello", c = { "100" : "some important data" }, d = {}; d[a]["greeting"] = b; d[a]["data"] = c; console.debug (d); ฉันได้รับข้อผิดพลาดต่อไปนี้: Uncaught TypeError: ไม่สามารถตั้งค่าคุณสมบัติ 'คำทักทาย' ของ undefined ฉันกำลังพยายามทำสิ่งที่คล้ายกับอาร์เรย์เชื่อมโยง เหตุใดจึงไม่ทำงาน
111
javascript