比較好的前端方法庫及一些vue如何引入靜態文件

https://select2.github.io/examples.html   select2 自動搜索帶select選擇javascript

## 表單提交 https://github.com/marioizquierdo/jquery.serializeJSON   能夠在標籤上直接寫就可達到後端想要的數據css

##   javascript工具庫   https://lodash.com/        html

http://lodashjs.com/docs/#_templatestring-optionsvue

## 時間處理工具庫 moment.js    http://momentjs.com/docs/#/parsing/java

http://www.layui.com/alone/   分頁及時間插件jquery

 

jQuery Form Validator    http://formvalidator.net/   校驗庫webpack

 

http://ninghao.net/   寧晧網,各類視頻課 git

http://vuefe.cn/guide/render-function.html#JSX   vue.js  2.0   中文網github

http://cn.vuejs.org/guide/index.html   vue.js  1.0中文網web

 

vue如何引入其它靜態文件:

(

src目錄下的資源只能import或require。

想靜態引入的話,創建一個與src同級的目錄例如static,而後把靜態資源放入該文件夾下,html的引入路徑以下:./static/...

注:試過必定要放在static文件夾下,不然報錯

)

 

vue如何引入sass

npm i sass --save-dev   裝下它

npm i sass-loader --save-dev  再裝下它

在webpack.base.config配置文件里加上這段
{
test: /\.scss$/,
loader: 'style!css!sass'
},
在組件文件.vue裏直接引入scss樣式
<style lang="scss">
.hello input {
color: red;
}
</style>


vue報錯cannot GET
 你init vue-cli的時候,有個選項問你是否須要eslint能夠選擇不須要,由於它是檢驗的,能夠不用,若是用它格式寫的不規範啓不來頁面
相關文章
相關標籤/搜索