比较好的前端方法库及一些vue如何引入静态文件

https://select2.github.io/examples.html   select2 自动搜索带select选择

## 表单提交 https://github.com/marioizquierdo/jquery.serializeJSON   可以在标签上直接写就可达到后端想要的数据

##   javascript工具库   https://lodash.com/        

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

## 时间处理工具库 moment.js    http://momentjs.com/docs/#/parsing/

http://www.layui.com/alone/   分页及时间插件

 

jQuery Form Validator    http://formvalidator.net/   校验库

 

http://ninghao.net/   宁晧网,各种视频课 

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

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

 

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可以选择不需要,因为它是检验的,可以不用,如果用它格式写的不规范启不来页面

 

posted @ 2016-10-17 18:44  小小公举  阅读(14912)  评论(1编辑  收藏  举报