文章加密

;

2020年2月27日 星期四

React router 4 “NOT FOUND” when I type in the URL in browser

https://stackoverflow.com/questions/44986152/react-router-4-not-found-when-i-type-in-the-url-in-browser

Isomorphic

What if we use Node JS as our server so we can run the same JS code on both ends? Now, we have all our routes defined in a single react-router config and we don't need to duplicate our rendering code. This is 'the holy grail' so to speak. The server sends the exact same markup as we would end up with if the page transition had happened on the client. This solution is optimal in terms of SEO.
Downsides:
  • Server must (be able to) run JS. I've experimented with Java i.c.w. Nashorn but it's not working for me. In practice it mostly means you must use a Node JS based server.
  • Many tricky environmental issues (using window on server-side etc)
  • Steep learning curve

2020年2月24日 星期一

Vuex 和 Cookie 哪個好? 小朋友才做決定,我兩個都要


Vuex 和 Cookie 非常類似,都是將網站 (app) 的一些資料或狀態暫存下來,這樣當頁面切換之後,部分資料跟狀態可以再被使用,不需要重新發送 request 跟 API 要資料。其中,兩者最大的不同是,當使用者重新整理畫面或是重新拜訪網站,Vuex 裡面的資料會消失,而 cookie 不會,所以通常會依需求交互使用兩者!
https://ithelp.ithome.com.tw/articles/10220039

2020年2月15日 星期六

display:grid

何謂 網格系統?

如果說 display: flex 是屬於一個維度的方向操作,那麼 display: grid 就可以視為是兩個維度的方向操作。簡而言之,這個網格系統提供了一個 欄 與 列 的操作概念,當你的操作區塊被定義為網格時,其下的子區塊,就被賦予網格系統的操作特性。





小練習 https://cssgridgarden.com/

2020年2月7日 星期五

符號的英文名,深深覺得是基本功

基本功,不管是閱讀文件或是跟外國人討論
https://www.ifreesite.com/typing/symbols-name.htm

|:vertical line, pipe.  管道是一種重定向形式,用於將一個程序的輸出發送到另一個程序進行進一步處理。
在以下示例中,cat命令讀取file1的內容,然後將其通過管道傳遞給wc命令,該命令將計算其中的行數,單詞數和字符數:
cat file1 | wc

2020年2月2日 星期日