使用方法:
1、head引入js文件
<!--核心js--> <script src="dist/vsPlayAudio.min.js"></script>
2、body引入HTML代码
<div id="vsPlayAudio"></div> <script> var player = new vsPlayAudio({ music: { //必需项,音乐配置 type: 'cloud', //必需项,网易云方式指定填'cloud' source: 2795268723 //必需项,网易云音乐歌单id //登录网易云网页版,在网页地址中拿到 // https://music.163.com/#/playlist?id=2795268723 }, autoPlay: true, random: true }); </script>