使用方法,直接将代码放源码首页文件结尾的</body>里面即可!
更换播放器音乐方法在代码data-id=”2624873470″中2624873470就是网易云的歌单id,网页登陆网易云找到自己的歌单music.163.com/#/my/m/music/playlist?id=2624873470,里面的id=2624873470就是歌单的id然后在更换自己的就是自己的歌单id就可以了
代码如下
<div id=”aplayer” class=”aplayer” data-order=”random” data-id=”2624873470″ data-server=”netease” data-type=”playlist” data-fixed=”true” data-autoplay=”true” data-volume=”0.8″></div>
<link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css”;>
<script src=”https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js”;></script>
<script src=”https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js”;></script>
<script src=”https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js”;></script>
<script src=”https://cdn.jsdelivr.net/gh/kaygb/kaygb@master/layer/layer.js”;></script>
<script src=”https://cdn.jsdelivr.net/gh/kaygb/kaygb@master/js/v3.js”;></script>