- 博客(21)
- 资源 (3)
- 收藏
- 关注
原创 关于vue使用el-cascader获取值的问题【超详细】
文章详细记录了通过vue 的el-cascader组件,如何获取到级联值的信息?以及如何回显的问题?
2024-03-08 13:12:01
8550
2
原创 微信小程序-音频播放器(完善)
-------------------------播放器效果如下--------------------------这次的代码是直接用小程序框架实现的,可能无法直接运行,最底下还有原生的小程序代码,实质都是一样的噢,
2024-03-01 15:45:19
1049
原创 根据url判断是视频还是图片
1 要获取后缀,则需要吧后缀跟图片文件或者视频文件的名字去掉(url = xxx.后缀)2 用split() 将字符串切成数组3 用pop() 删除数组的第一个元素4 这样就得到后缀了,为了保险期间,再用toLowerCase() 将后缀这个字符串全改为小写字母,这样是为了好判断5 最后用字符串的includes() 方法 判断自己写好的扩展名数组中就完事儿啦。
2024-02-29 17:58:55
867
原创 vue3 element-ui的插槽使用(scope)
el-table-column prop="name1" label="状态" ><span class="dot" :class="scope.row.name1=='进行中'?'green':scope.row.name1=='已取消'?'glay':scope.row.name1=='待接单'?
2023-05-29 11:33:34
1451
原创 v-show和v-if的区别
v-show :有更高的初始渲染开销。适合需要非常频繁地切换的情形;v-if :有更高的切换开销。适合在运行时条件很少改变。
2023-04-06 15:27:57
92
原创 vue3配置文件(别名,跨域,jquery)
vue.config.js文件const webpack = require('webpack')// const path = require('path')// const resolve = dir => path.join(__dirname, dir)// 跨域配置module.exports = { // 配置插件参数 configureWebpack: { plugins: [ new webpack.ProvidePlugin({
2021-12-09 20:03:08
595
原创 vue父子组件的通信之参数传递
1、子组件<template> <div> <header> 我是header </header> </div></template><script>export default { // 父组件传过来的参数用props接受,参数名为profile props: { profile: { type: Object } }}</scr
2021-12-09 19:52:57
481
原创 vue父子组件的通信之直接调用
1、子组件<template> <div> <header> 我是header </header> </div></template><script></script><style scoped>.head { background: #A4D2FB; height: 65px;}</style>2 、父组件,在这里调用子组
2021-12-09 19:44:44
180
原创 js验证码倒计时功能
1、效果2 代码部分// 注册获取验证码 async getVerifyCode (tag) { var form = {} if (this.validatePhone(tag)) { this.validateBtn() switch (tag) { case 'stu': form = this.registerForm break case
2021-12-09 19:31:38
283
原创 js给对象动态添加属性的2种方法
js给对象动态添加属性的2种方法for of 遍历对象,得到对象for in 遍历对象 ,得到对象的下标补充:this.videoList = [] const data = await this.$http.post('Course/shows', { type: nedCuriculums.type, grade: nedCuriculums.grade, classtype: nedCuriculums.classtype
2021-12-08 15:12:41
7153
2
原创 js函数的可变参数
js函数的可变参用argument来获得获得了之后就可以方便后续的使用我这里是为了传参数给下一个界面,以判断是否可以播放// 获取课程详细视频目录信息 // async showVideoInfo (type, grade, classtype, session, termone, course) { async showVideoInfo (curriculums, termone) { var flag = null // console.log(a
2021-12-08 15:00:21
489
原创 判断数组对象里面是否包含一个对象
js判断数组对象里面是否包含一个对象**用some()函数** /** 判断当前选中的课程是否已经购买过,依此判断他是否能看完整视频 * 返回一个Boolean 值 * 判断数组对象里面是否包含一个对象 ############ * */ isAwn (chooseInfo) { var result = this.allProfile.some(item => { if (item.classtype
2021-12-08 14:52:10
911
原创 IDEA调试代码
IDEA调试代码详细教程1、打开debug会有这个界面2、运行代码,点击run# import os# import timeimport datetimeprint('Hello World!')print('Time is ', datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S %A'))print('__name__ value: ', __name__)def main(): print('this mes
2021-11-10 08:50:55
965
原创 vue 项目实现文件下载
前端的html部分<div class="file" v-for="item in jiaoanList" :key="item.name"> ..... // 这里从后台传过来的数据是文件的信息(xxx.doc/xxx.pdf..等) <el-col :span="6"> <a href="#"> <div class="operate-sigle" @click="download(item.data)"> // item
2021-09-17 14:39:23
370
原创 本地项目上传到码云详细教程
本地项目上传到码云详细教程1 创建好本地项目2 大前提: 全局配置一下 执行这两条语句(打开cmd就可执行,这里无需选择目录)注意:这里的2条语句是在gitee 创建项目之后有的 ---- (本文最后有详细解析哦!)3 初始化git仓库2.1 在当前文件夹下面打开cmd 执行 git init git init而后我们就可以看到 .git文件信息4 将所有目录上传 git add .git add . 注意这里add 后面的 . 这是一定要的,表示将所有目录上传5 查看
2021-07-23 11:48:39
167
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人