Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Commit

Permalink
优化写法
Browse files Browse the repository at this point in the history
  • Loading branch information
maicong committed Feb 23, 2018
1 parent f8f6614 commit 73cec16
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions static/js/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,9 @@ $(function() {
if (!v.title) v.title = '暂无';
if (!v.author) v.author = '暂无';
if (!v.pic) v.pic = nopic;
if (!v.lrc) {
v.lrc = '[00:00.00] 暂无歌词'
v.noLrc = true
};
if (!v.lrc) v.lrc = '[00:00.00] 暂无歌词'
if (!/\[00:(\d{2})\./.test(v.lrc)) {
v.lrc = '[00:00.00] 无效歌词';
v.noLrc = true
}
});
var setValue = function setValue(data) {
Expand Down

0 comments on commit 73cec16

Please sign in to comment.