- 博客(3)
- 收藏
- 关注
原创 Vue实现⼀个Message组件,满⾜弹出消息通知、关闭消息通知 即可
<template> <transition name="el-fade-in" > <div class="mask" v-if="show"> <div class="message"> <div class="message-box"> <i class="message-icon" :class="'icon-'+type" ></i>
2022-02-15 12:15:00
1327
1
原创 给出如下地址数据格式,实现函数geyNameById,输入address和id,输出id对应的地址name
<script> const address = [ { id: 1, name: '北京市', children: [ { id: 11, name: '海淀区', children: [ { id: 111, name: '中关村', }
2022-02-15 12:13:23
1134
原创 实现⼀个能对数组去重的⽅法
(1).set方式function unique(array) { return Array.from(new Set(array)) } let array = [1,5,2,3,2,5,4] console.log(unique(array)); (2).for循环嵌套function unique(array) { for(var i=0; i<array.length; i++){ for(var j=i+1; j<array.len
2022-02-15 12:12:00
222
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人