2017-04-29 14:10
#JavaScript #音乐 #React基于 create-react-app 脚手架工具实现的音乐播放器。
git clone https://github.com/chunqiuyiyu/music-player.git
cd music-player
npm install
npm start
./public/musics/
路径{
"song_name": "song_name",
"artist": "somebody",
"lrc_name": "lrc_name"
}
npm start
重新编译运行项目npm build
,
打包后的文件在./build/
下,部署此目录下所有文件到线上即可感谢 react、webpack、babel 等一系列优秀的开源项目,可以让前端开发如此简单快乐。