比较好的前端方法库及一些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能够选择不须要,由于它是检验的,能够不用,若是用它格式写的不规范启不来页面
相关文章
相关标签/搜索