IT界討論區(72) 1001開Post喇喂

1001 回覆
0 Like 0 Dislike
2019-11-07 18:15:57
舊post
(1): https://lihkg.na.cx/thread/4990/page/1
(2): https://lihkg.na.cx/thread/69444/page/1
(3): https://lihkg.na.cx/thread/89460/page/1
(4): https://lihkg.com/thread/116590/page/1
(5): https://lihkg.com/thread/130061/page/1
(6): https://lihkg.com/thread/148992/page/1
(7): https://lihkg.com/thread/170835/page/1
(8): https://lihkg.com/thread/208042/page/1
(9): https://lihkg.com/thread/233717/page/1
(10): https://lihkg.com/thread/250870/page/1
(11): https://lihkg.com/thread/269901/page/1
(12): https://lihkg.com/thread/287135/page/1
(13): https://lihkg.com/thread/303147/page/1
(14): https://lihkg.com/thread/323813/page/1
(15): https://lihkg.com/thread/346843/page/1
(16): https://lihkg.com/thread/385374/page/1
(17): https://lihkg.com/thread/407488/page/1
(18): https://lihkg.com/thread/432444/page/1
(19): https://lihkg.com/thread/456486/page/1
(20): https://lihkg.com/thread/471984/page/1
(21): https://lihkg.com/thread/503507/page/1
(22): https://lihkg.com/thread/547628/page/1
(23): https://lihkg.com/thread/576562/page/1
(24): https://lihkg.com/thread/602397/page/1
(25): https://lihkg.com/thread/627728/page/1
(26): https://lihkg.com/thread/651466/page/1
(27): https://lihkg.com/thread/673484/page/1
(28): https://lihkg.com/thread/690968/page/1
(29): https://lihkg.com/thread/701812/page/1
(30): https://lihkg.com/thread/718050/page/1
(31): https://lihkg.com/thread/729926/page/1
(32): https://lihkg.com/thread/739411/page/1
(33): https://lihkg.com/thread/746333/page/1
(34): https://lihkg.com/thread/754096/page/1
(35): https://lihkg.com/thread/762089/page/1
(36): https://lihkg.com/thread/769677/page/1
(37): https://lihkg.com/thread/776679/page/1
(38): https://lihkg.com/thread/784699/page/1
(39): https://lihkg.com/thread/791805/page/1
(40): https://lihkg.com/thread/800016/page/1
(41): https://lihkg.com/thread/807460/page/1
(42): https://lihkg.com/thread/816001/page/1
(43): https://lihkg.com/thread/828694/page/1
(44): https://lihkg.com/thread/837713/page/1
(45): https://lihkg.com/thread/855218/page/1
(46): https://lihkg.com/thread/871851/page/1
(47): https://lihkg.com/thread/895032/page/1
(48): https://lihkg.com/thread/906329/page/1
(49): https://lihkg.com/thread/921824/page/1
(50): https://lihkg.com/thread/933250/page/1
(51): https://lihkg.com/thread/941628/page/1
(52): https://lihkg.com/thread/954097/page/1
(53): https://lihkg.com/thread/966642/page/1
(54): https://lihkg.com/thread/975683/page/1
(55): https://lihkg.com/thread/986392/page/1
(56): https://lihkg.com/thread/1001177/page/1
(57): https://lihkg.com/thread/1018974/page/1
(58): https://lihkg.com/thread/1040860/page/1
(59): https://lihkg.com/thread/1055888/page/1
(60): https://lihkg.com/thread/1081932/page/1
(61): https://lihkg.com/thread/1101303/page/1
2019-11-07 18:18:42
P仔 頂爛市參考價 :
乜都唔識 + HD: 16k - 18k
識少少 + HD: 17k-19k
u grad + 白紙: 18k~25k
P仔 頂爛市參考價 :
乜都唔識 + HD: 16k - 18k
識少少 + HD: 17k-19k
u grad + 白紙: 18k~25k
2019-11-07 18:24:11
年尾真係冇咩朋友仔轉工, Java人缺到不得了
2019-11-07 18:25:45
2019-11-07 18:34:00
lm
2019-11-07 18:43:53

唔知點解map個state object出黎果陣彈 cannot read property 'map' of undefined出黎,有冇react巴打幫下眼
2019-11-07 18:44:39
2019-11-07 18:55:35
check 下個products係咪一個array type...
2019-11-07 19:05:35
下次試下cut 完圖 連埋 error 先 upload

咁樣點睇啊
2019-11-07 19:26:55
2019-11-07 19:35:45
係撚
佢個this.state.products = undefined
2019-11-07 19:38:47
所以咪叫佢check下
2019-11-07 19:53:33
2019-11-07 20:02:03
冇error,佢係返到2個object,如果就咁係render到{this.state.products} 就會顯示果兩個json
2019-11-07 20:03:51
係呀。。。
2019-11-07 20:05:58
誤中
2019-11-07 20:07:00
cap到咁好難幫你
2019-11-07 20:13:27
想做既野都係曬頁,我想做既野就係係backend到攞products 既data,咁正常就會response
{id:1 , item:apple , price:100} {id:2 , item:orange , price : 200}咁既,我係console都見到係成功response 既,咁跟住我想係render 到用map return 個ul 出黎既,但去到呢步就唔知點解li係空白咗
2019-11-07 20:18:20
因為第一次render係didmount之前
我既做法係係render果度加個if check product有野先return
2019-11-07 20:19:34
唔該巴打,睇黎我對life cycle 仲未完全掌握
2019-11-07 20:29:11
2019-11-07 20:35:23
ul 可以配 p 㗎咩
同埋用 map 漏 pass key 入 個 element props, React 會屌你

另外學試用 React hooks 同 high order component 對你有利
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞