看板 Ajax 關於我們 聯絡資訊
http://i.imgur.com/cJXBszv.jpg 上圖最後只為一個image附值 需改為thestatus[thename] = 'normal'才可, 請問原因是 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.181.211 ※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1451024455.A.857.html
rexyeah: 弄個迴圈總有個目的吧..看起來這個迴圈的目的是命名啊 12/25 15:05
washqwe: 這只是舉例, 12/25 15:40
eight0: object.property <=> object["property"] 12/25 17:07
washqwe: 在這例不成立 12/25 21:44
johnny94: 你確定theName這個變數的值等於theName? 12/27 22:28
washqwe: 蓤隇 12/27 22:40
eight0: theStatus.theName => theStatus["theName"] 12/28 02:30
eight0: theStatus["theName"] 和 theStatus[theName] 的意義是不 12/28 02:30
eight0: 一樣的唷 12/28 02:31