aszx87410 / frontend-intermediate-course

It's a free online course about some frontend tech including Ajax, CORS, gulp, webpack and so on.
266 stars 88 forks source link

[作業] 繳交hw5 #87

Closed pychiang closed 7 years ago

pychiang commented 7 years ago

slack 帳號

pychiang

哪一個作業

  1. 讓網頁變得更完整:加上 placeholder 與 infinite scroll

作業 Github 連結

https://github.com/pychiang/frontend-intermediate-course/tree/master/answers/hw5

作業 Github Page 連結

https://pychiang.github.io/frontend-intermediate-course/answers/hw5/index.html

其他補充說明

  1. 看到 LeoWangJ 同學發問後才去仔細看 Sass 跟 SCSS 的 documentation,發現之前把兩個的 mixin 誤用(雖然也編譯成功)。修改成 Sass 用 =(等同 SCSS 用 @mixin ),Sass 用 +(等同 SCSS 用 @include)。

  2. 作業四有在最後另外加入佔位的空白 div 維持版面,但這次如果加入會在載入新的資料後變成奇怪的空位。研究一下你的作業五直播的程式碼,沒有發現你有另外加入空白 div,但是版面依然正常。後來想說反正捲軸往下捲的時候就載入新資料了,基本上不太會被注意到,所以就放棄研究 XD

  3. 不太確定 error handling 應該要怎麼處理比較正確,所以只有弱弱的加入一段錯誤訊息。

aszx87410 commented 7 years ago
  1. 佔位空白的部分,其實是因為我直播時候用的版本不是 flexbox 的版本,所以不用加入佔位空白。要解掉的話其實也不難,在插入資料的部分,只要把資料插入到佔位空白前面就好
  2. 目前也沒有明說怎麼處理,所以有想到要處理錯誤訊息就已經很不錯囉