zoukankan      html  css  js  c++  java
  • 比较好的前端方法库及一些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可以选择不需要,因为它是检验的,可以不用,如果用它格式写的不规范启不来页面
  • 相关阅读:
    PostgreSQL数据损坏与checksum
    go get命令无响应解决方法
    vscode离线安装插件
    windows搭建Go语言环境
    centos7安装zabbix 5.0
    搭建人生重开模拟器
    博客园增加打赏
    记一次halo报错
    VM operation inconsistent with current state
    nextcloud安装onlyoffice
  • 原文地址:https://www.cnblogs.com/chaoyuehedy/p/5970832.html
Copyright © 2011-2022 走看看