文章加密

;
顯示具有 現學 標籤的文章。 顯示所有文章
顯示具有 現學 標籤的文章。 顯示所有文章

2019年7月25日 星期四

跟著 Vue 闖蕩前端世界 - 02 使用 Vue-cli 建構專案

如果這個 module 有機會被許多組件(component) 使用,此時若需要不斷的在四處 import toastr 模組好像有點累;這時就可以考慮在 webpack 中設定自動 import modules,設定方式如同前篇文章設定 jQuery 方式一樣,請開啟 webpack.base.conf.js 參考以下設定。
https://dotblogs.com.tw/wasichris/2017/03/02/230516  看到上面這段

https://dotblogs.com.tw/wasichris/2017/03/01/172049

把這個作者的跟著走一遍(不過似乎版本已經更新,要用cli3)

https://cli.vuejs.org/guide/plugins-and-presets.html#plugins  官網文章也看一看

npm install sass-loader node-sass --save-dev 結果scss是可以用的

https://segmentfault.com/a/1190000017020755 一份超级详细的Vue-cli3.0使用教程[赶紧来试试!]


vue-cli3.0 安装jQuery
https://juejin.im/entry/5b446efde51d45194e0b8985


vue-cli 3.0的指令

vue serve 同npm run serve(同過去的npm run dev), 但是Valid entry file should be one of: main.js, index.js, App.vue or app.vue.

npm run serve 執行開發模式下的專案

npm run build 建立整個專案的dist/資料夾並放入inline js等等的格式

vue build MyComponent.vue 為該檔案建立dist/資料夾並放入inline js等等的格式

vue create . / vue create <name> 同過去的vue init

vue ui 叫出vue 圖形化介面

vue add <plugin> Installing Plugins in an Existing Project



為了讓 main.js 比較乾淨,因此建立 src/setup 資料夾來放置其他需要設定引用的相關 js 檔。

2019年7月16日 星期二

Vue Quasar Framework

https://quasar.dev/quasar-cli/ajax-requests   官方文件,覺得看英文版比較好,中文其實看不太出來東西在哪裡,往哪邊連結

https://ithelp.ithome.com.tw/articles/10201636  鐵人賽Quasar帶入門--day1開始
https://ithelp.ithome.com.tw/articles/10202865  day4

<q-icon name="menu" />   
q-icon 使用到的name來自 https://material.io/tools/icons/?icon=accessibility&style=baseline


https://quasar.dev/layout-builder  官方layout builder
For example, if you want your layout’s right side / drawer to be placed on the right of the header, page and footer, you’d use hhr lpr ffr. If you’d like to also make it fixed, just transform one r character to uppercase, like this: hhr lpR ffr, or hhr lpR ffr or hhr lpR ffr.
WARNING

It is important that you specify all sections of a QLayout, even if you don’t use them. For example, even if you don’t use footer or right side drawer, still specify them within your QLayout’s view prop.

2019年7月9日 星期二

JAVA 教學 切版!

https://www.bilibili.com/video/av35556299/?p=16

0709 p12
0710 p16

1.
C:\Windows\System32  這個位子存放著本機原本的dos命令執行檔,例如在cmd打calc會出現小算盤,是因為這個位子裡有一個calc.exe的檔案
而下載安裝後的jdk檔案裡有.bin的檔案,.bin裡存放的就是java在cmd可輸入的命令(似乎要使用java命令,必須把位置移動到這個地方才可以用)