<div class="row">
<div class="col-md-6 col-sm-12">
col-1 (文字)
</div>
<div class="col-md-6 col-sm-12">
col-2 (圖)
</div>
</div>
<div class="">
<div class="col-md-6">
col-1, should occupy half of the row.
</div>
<div class="col-md-6">
col-1, should occupy another half of the row.
</div>
</div>
mkdir practice
cd practice/
npm init -y
# init package.json file
npm install react react-dom
npm install --save-dev @babel/core @babel/preset-env @babel/preset-react webpack webpack-cli webpack-dev-server babel-loader css-loader style-loader html-webpack-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* `nfn`: arrow name function | |
* `anfn`: annoymous function | |
* `imp` import | |
* `fof` for of loop | |
* `fin` for in loop | |
* `npro` new promise | |
* `mapSta` mapstate to prop | |
* `mapDisp` to dispatch | |
# 常用 # |
- 原因:部屬自動部屬環境,需要可以自動pull git 資料,不需密碼。
- 潛在風險:可能有安全性的疑慮(
.netrc
中的密碼為明碼,要設定好.netrc
的讀取權險,目前只在測試server上使用。 - git:使用bit。
- 參考: https://stackoverflow.com/questions/31609203/git-netrc-file-authentication-issue
# 到根目錄下
cd ~
網路上搜尋到的範例中,通常都是mocha搭配chai,測試nodejs伺服器端的程式。 要如何測試純前端讀取的javascript file呢?
nodejs的javascript,透過模組化的概念,每寫完一個function 後,必須把function export成一個模組,
在測試檔案中使用require(filepath/file)
引入後,才可以對其作測試。
然而目前的網頁瀏覽器都還不認識ES6 的 export 寫法。
如果要使用這架構開發測試,最後還要經過webpack
之類的程序,將ES6的 js code 編譯成目前瀏覽器看得懂的js版本。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
轉自網路文章,原文已被刪除 | |
``` | |
email:pianopan@beeship.com | |
[版本] -0.13 | |
[介紹] | |
gcc and g++分別是gnu的c & c++編譯器 gcc/g++在執行編譯工作的時候,總共需要4步 |
NewerOlder