- 博客(5)
- 收藏
- 关注
原创 vue3 + elementplus + koa2 + formData实现文件上传
1、前端页面<el-uploadclass="avatar-uploader"action="https://jsonplaceholder.typicode.com/posts/":show-file-list="false"list-type="picture-card":on-success=...
2021-11-10 11:59:25
3502
原创 vue2 + vue-video-player 视频播放器
1、安装该插件npm install vue-video-player2、项目main.js中引入importVideoPlayerfrom'vue-video-player'require('video.js/dist/video-js.css')require('vue-video-player/src/custom-theme.css')Vue.use(VideoPlayer)3、页面代码<template><divclass...
2021-11-10 11:22:20
4393
3
原创 vue2+bootstrapvue+Koa2+nodejs实现分页
1、实现分页思路(1)后端需要接收两个数据,当前页(currentPage)、每一页的大小(即每一页要展示多少条数据 pageSize)(2)注意:前端每点击一次要显示的页面都要发送一次请求2、实现案例vue2+bootstrapvue前端Koa2后台服务器接口3、最终实现效果...
2021-11-10 10:58:27
466
原创 关于 parseInt()和map()
1、为什么[1','2','3'].map(parseInt) 输出结果:['1',NaN,NaN] ? map方法:map方法会给灭个原数组中的每个元素都调用一次回调函数,回调函数只会在有值的索引上被调用,那些从没有被赋过值或者使用delete删除的索引则不会被调用。map的回调函数会被自动传入三个参数:数组元素,元素索引,原数组本身。 parseInt方法:该方法是可以接收两个参数的。第一个参是被转化的值,第二个参数是被转化值的进制。 NaN:代表...
2021-11-03 11:34:52
244
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人