mpvue 搭建命令

摘要: 1. 先检查下 Node.js 是否安装成功 node -v npm -v 2. 全局安装 vue-cli npm install --global vue-cli 3. 创建一个基于 mpvue-quickstart 模板的新项目 vue init mpvue/mpvue-quickstart m 阅读全文
posted @ 2019-08-23 10:55 旺仔小裤头 阅读(188) 评论(0) 推荐(0) 编辑

uni-app 漫长学习之路

摘要: 1.使用uni-app的优点 跨更多的平台 运行体验更好 学习成本低 开发生态,组件更丰富 阅读全文
posted @ 2019-08-22 16:31 旺仔小裤头 阅读(241) 评论(0) 推荐(0) 编辑

vue 音频播放vue-aplayer

摘要: 官网地址:https://www.npmjs.com/package/vue-aplayer github地址:https://github.com/SevenOutman/vue-aplayer/tree/master/docs 1.命令:npm i vue-aplayer npm install 阅读全文
posted @ 2019-08-22 16:04 旺仔小裤头 阅读(3821) 评论(0) 推荐(0) 编辑

vue 视频播放Vue-Video-Player

摘要: 官网地址:https://www.npmjs.com/package/vue-video-player 1.输入命令: npm install vue-video-player --save npm install --save videojs-contrib-hls 2.全局引入--main.js 阅读全文
posted @ 2019-08-22 11:55 旺仔小裤头 阅读(1468) 评论(0) 推荐(2) 编辑

MVC与MVVM区别

摘要: mvc:Model=>View=>Controller 当用户在Model上有输入时,会通过Controller去更新模型,并且通知View进行更新 mvvm:model=>view=>viewmodel 提供对View 和 ViewModel 的双向数据绑定,这使得ViewModel 的状态改变可 阅读全文
posted @ 2019-08-20 16:20 旺仔小裤头 阅读(115) 评论(0) 推荐(0) 编辑

原生ajax请求的步骤

摘要: //第一步,创建XMLHttpRequest对象var xmlHttp = new XMLHttpRequest();function CommentAll() { //第二步,注册回调函数 xmlHttp.onreadystatechange =callback1; //{ // if (xmlH 阅读全文
posted @ 2019-08-20 15:06 旺仔小裤头 阅读(99) 评论(0) 推荐(0) 编辑

H5前端学习之路第4天--前端面试题 js

摘要: 1.js的数据类型,null 和 undefined的区别,原始数据类型和引用数据类型的对比 (1).String,Object,Number,Boolean,Undefined,Null (2).undefined:表示缺少值,在使用var 声明变量但未对其加以初始化时,这个变量的值就是undef 阅读全文
posted @ 2019-08-19 19:04 旺仔小裤头 阅读(154) 评论(0) 推荐(0) 编辑

H5前端学习之路第3天--前端面试题 css

摘要: 今天没有学习其他的,还是决定刷一些面试题看看 1. CSS 盒子模型,绝对定位和相对定位 盒子模型:一个元素是有content(内容),padding(内补白),border(边框),margin(外补白)四部分组成,而这四个部分就组成了css中的盒模型 绝对定位:position:absolute 阅读全文
posted @ 2019-08-15 11:49 旺仔小裤头 阅读(131) 评论(0) 推荐(0) 编辑

H5前端学习之路第2天--生成图表

摘要: 第一种:Echarts GitHub链接:https://github.com/apache/incubator-echarts 如果想要查看所有的属性,可查看:https://www.echartsjs.com/zh/cheat-sheet.html || https://blog.csdn.ne 阅读全文
posted @ 2019-08-14 14:35 旺仔小裤头 阅读(194) 评论(0) 推荐(0) 编辑

H5前端学习之路第1天--css预处理器

摘要: 预处理器包括:less,sass,stylus stylus 1.安装命令:npm install -g stylus 2.保存并自动编译命令:stylus -w demo.styl -o dist -w 是自动监视文件 -o 是将编译后的CSS文件输出到指定文件中 相同之处:都可以进行父子级之间的 阅读全文
posted @ 2019-08-13 18:30 旺仔小裤头 阅读(265) 评论(1) 推荐(0) 编辑