12 2021 档案

摘要:audio中的duration可以获取当前播放音频的总时长 模版: <audio ref="audio" :src="`https://music.163.com/song/media/outer/url?id=${id}.mp3`" ></audio> 开始使用的是通过获取dom节点,在使用nex 阅读全文
posted @ 2021-12-29 11:05 mmsmd 阅读(1666) 评论(0) 推荐(0)
摘要:Write a function that takes in a string of one or more words, and returns the same string, but with all five or more letter words reversed (Just like 阅读全文
posted @ 2021-12-15 13:46 mmsmd 阅读(117) 评论(0) 推荐(0)
摘要:群里看见一个别人分享的面试题记录一下: 写一个函数,两个参数,key和index。在数组中总有对应的一个key值,前key项都是1,key的后一个数据等于key加key的前一个数据。返回数字index位上的值 通过for循环实现 const arr = [] const fn = (key, ind 阅读全文
posted @ 2021-12-13 22:06 mmsmd 阅读(57) 评论(0) 推荐(0)
摘要:在使用 router-link-active 设置链接激活时CSS类名时,发现在例如 /member/order 和 /member/order/:id 这两个都包含 /member/order的路由路径,其中后者无法和前者一样设置类名,也就是 router-link-active 加不上 在vue 阅读全文
posted @ 2021-12-11 23:09 mmsmd 阅读(910) 评论(0) 推荐(0)
摘要:今天在使用vue3中将一个组件渲染为了代码片段且定义了一个自定义事件,报了一个警告 [Vue warn]: Extraneous non-emits event listeners (change) were passed to component but could not be automati 阅读全文
posted @ 2021-12-06 20:40 mmsmd 阅读(2557) 评论(0) 推荐(0)
摘要:Does my number look big in this? Description: A Narcissistic Number is a positive number which is the sum of its own digits, each raised to the power 阅读全文
posted @ 2021-12-06 14:23 mmsmd 阅读(71) 评论(0) 推荐(0)