上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 一、安装axios npm install --save axios 二、在src下面创建文件夹api=>api.js(接口集合)+http.js(封装的请求) 三、在main.js中引用api.js和http.js //引入两个文件 import api from './api/api' impo 阅读全文
posted @ 2020-03-25 16:39 <_/> 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 在码云客户端创建项目然后在要上传的项目文件夹中右键 Git Bush Here如下 git config --global user.name "tuoni" git config --global user.email "tuoni@qq.com" git init git remote add 阅读全文
posted @ 2020-03-25 14:14 <_/> 阅读(681) 评论(0) 推荐(1) 编辑
摘要: 一、骰子的布局 骰子的一面,最多可以放置9个点。 下面,就来看看Flex如何实现,从1个点到9个点的布局。你可以到codepen查看Demo。 如果不加说明,本节的HTML模板一律如下。 <div class="box"> <span class="item"></span> </div> 上面代码 阅读全文
posted @ 2020-03-17 10:15 <_/> 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1.下载lib-flexible 使用的是vue-cli+webpack,通过npm来安装的 npm i lib-flexible --save 2.引入lib-flexible 在main.js中引入lib-flexible import 'lib-flexible/flexible' 3.设置m 阅读全文
posted @ 2020-03-17 08:48 <_/> 阅读(4020) 评论(2) 推荐(1) 编辑
摘要: 1、安装 cnpm i qrcodejs2 -S 2、项目中使用 HTML: <!-- 放置二维码的容器,需要给一个ref --> <div id="qrcode" ref="qrcode"></div> js: // 引入 import QRCode from 'qrcodejs2' method 阅读全文
posted @ 2020-01-05 15:32 <_/> 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: 监听事件 阅读全文
posted @ 2020-01-05 09:46 <_/> 阅读(5571) 评论(0) 推荐(0) 编辑
摘要: 先看看效果图: 一,首先创建一个公共的文件夹treeTable,里边放一个index.vue和eval.js 先看看index.vue,原理就是在element-ui的基础上做了进一步改造。 eval.js放入下列代码 二,页面中的用法 阅读全文
posted @ 2020-01-02 09:22 <_/> 阅读(12489) 评论(0) 推荐(1) 编辑
摘要: 1、计算当前周一到周日的日期 ​​​​​​​var weekOfday = moment().format('E');//计算今天是这周第几天 var last_monday = moment().subtract(weekOfday-1, 'days').format('YYYY/MM/DD'); 阅读全文
posted @ 2019-12-29 15:51 <_/> 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 可能出现的尺寸场景: 代码如下: 阅读全文
posted @ 2019-09-11 09:53 <_/> 阅读(612) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2019-07-30 15:49 <_/> 阅读(3152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页