官网地址:https://www.npmjs.com/package/vue-aplayer
github地址:https://github.com/SevenOutman/vue-aplayer/tree/master/docs
1.命令:npm i vue-aplayer
npm install --save hls.js(可能需要)
2.文件template:
<aplayer autoplay
:music-"{
title:'邓伦 心动',
artist:'邓伦',
src: '../../../static/images/dlxd.mp3',
pic: '../../../static/images/top.png'
}"
/>
3.文件script:
import Aplayer from "vue-aplayer";
components: {
Aplayer
},