Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下顺序播放和列表循环有何区别? #8

Closed
gdutwyg opened this issue Feb 22, 2019 · 4 comments
Closed

请问下顺序播放和列表循环有何区别? #8

gdutwyg opened this issue Feb 22, 2019 · 4 comments

Comments

@gdutwyg
Copy link

gdutwyg commented Feb 22, 2019

image
我在你代码里面看到是逻辑貌似是一样的

@gdutwyg
Copy link
Author

gdutwyg commented Feb 22, 2019

明白了

@gdutwyg gdutwyg closed this as completed Feb 22, 2019
@maomao1996
Copy link
Owner

这里 switch 逻辑是有点重复可以简化成
case playMode.listLoop: case playMode.order: list = this.orderList; break;

@gdutwyg
Copy link
Author

gdutwyg commented Feb 22, 2019

image
还有这里

// 这样是否更好
this.isMute = percent === 0 ?  true : false;

@maomao1996
Copy link
Owner

还可以直接这样写的:

this.isMute = percent === 0

这个项目大多代码都是很久以前写的,很多都可以简化,等有空的时候会做一些代码上的优化的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants