- 博客(16)
- 资源 (81)
- 收藏
- 关注
原创 eslint:"node": true的重要性
JQuery项目报了下面的错// 在env配置项中加了,"browser": true//sessionStorage,alert,location,document报错全没了// 附带说一句 ,再配置了一堆全局变量,所有的错误就没了“$”:“readonly”,“baseUrl”:“readonly”,“education”:“readonly”,“regex”...
2019-09-27 18:47:44 536
原创 Vue和JQuery: 单文件/图片视频音频上传
三步逻辑://手动或是自动触发input:file的上传// 用户选中图片或是文件后,会自动触发change事件// this.files[0]拿到选中的文件,URL.createObjectURL()可以创造出一个url <link rel="stylesheet" href="./font/iconfont.css" /> <style> ...
2019-09-26 19:44:06 493
原创 字体图标第一篇: iconfont目录分析,及三种图标使用方式
下载下来就有这些文件(看下面选择你要保留的文件)emon.css和demon_index.html有 三种使用方式及名称1)使用unicode方式:(.ttf .woff .woff2 .eot这四个文件和iconfont.css必要) –兼容ie6以上选这个2) font-class方式(.ttf .woff .woff2 .eot这四个文件和iconfont.css必要) –兼容ie......
2019-09-24 18:25:29 1089
原创 微信小程序:一个警告
看这里// 原生小程序改 sitemap.jsonwepy之类的框架改这个文件 project.config.json在settting中将改字段改成false,删除dist目录后重新打包 "setting": { "checkSiteMap": false },...
2019-09-20 10:31:00 377
原创 eslint:先导篇
eslint默认检测.js文件。//如果你想要检测.vue的文件,去看看eslint-plugin-vue的官方文档检查的错误有三个级别js文件报错,可以查eslint官网的rules.j。执行命令加上–fix会自动修复错误//vue文件的报错得去eslint-plugin-vue查规则。...
2019-09-13 11:19:18 89
原创 微信小程序:实现navbar标签页
2. 该项目基于wepy1.X版本实现的//通过给data-idx="{{index}}"通过事件对象event…currentTarget.dataset.idx拿到值给data中变量
2019-09-09 19:15:15 930
原创 eslint:让vue项目报错
npm run lint开启eslint检查(或者用这个npm run serve)看这项目,运行起来了竟然没有报错 。。。。。。(内心崩溃)看这(把eslint配置文件删了,安装eslint官网重新下了配置了eslint文件结果报下面的错)某得办法了,只好去vuecli下载项目(把src和package.json扔过去,重新下载依赖)...
2019-09-07 17:31:50 310
原创 微信小程序:wepy语法高亮及代码片段
在vue.json中配置代码片段//记得vscode先安装minapp,再使用wepy "Print to console": { "prefix": "wepy", "body": [ "<template lang='wxml' miniapp='wepy'>"," <view class='container'>"," ...
2019-09-06 13:46:46 1006
原创 Vue:Vue.component(),Vue.use(),Vue.protype.区别
结果: Vue.use(对象).Vue.component('组件名',对象)。//这两种方式都可以注册element-ui的组件及封装的单文件组件。只是vue.use使用要简单点上面两种方式是对象,必定要有install属性。而Vue.protype.$message,Vue.protype.axios之类的是个方法...
2019-09-01 22:37:59 2114
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人