标签:console code vip desc png div foreach com func
数据库拿出来的数据
// 从数据库歌单里获取歌曲 $.get(‘http://192.168.0.105:8888/songs‘,{},function(e){ // console.log(e); var str = ‘‘; e.forEach(function(i) { str += `<a href=""> <li class="list"> <div class="song">${i.name}</div> <div class="desc"> <img src="https://y.gtimg.cn/mediastyle/mobile/app/share/img/icon_vip.png?max_age=25920000" > <div class="singer">${i.author}</div> </div> </li> </a>` }); $(‘.content‘).html(str); console.log(str); })
标签:console code vip desc png div foreach com func
原文地址:https://www.cnblogs.com/zc-blog-com/p/13406240.html