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

Commit 73cec16

Browse files
committed
优化写法
1 parent f8f6614 commit 73cec16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

static/js/music.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,9 @@ $(function() {
187187
if (!v.title) v.title = '暂无';
188188
if (!v.author) v.author = '暂无';
189189
if (!v.pic) v.pic = nopic;
190-
if (!v.lrc) {
191-
v.lrc = '[00:00.00] 暂无歌词'
192-
v.noLrc = true
193-
};
190+
if (!v.lrc) v.lrc = '[00:00.00] 暂无歌词'
194191
if (!/\[00:(\d{2})\./.test(v.lrc)) {
195192
v.lrc = '[00:00.00] 无效歌词';
196-
v.noLrc = true
197193
}
198194
});
199195
var setValue = function setValue(data) {

0 commit comments

Comments
 (0)