例如:
this.audio.paused && (this.audio.play(), this.dom.playbutton.classList.add("skPlayer-pause"), this.dom.cover.classList.add("skPlayer-pause"));
这句话用普通写法是这样的吗?
if (this.audio.paused) {
if (!isLoaded) {
this.audio.load();
isLoaded = true;
}
this.audio.play();
this.dom.playbutton.classList.add("skPlayer-pause");
this.dom.cover.classList.add("skPlayer-pause");
}
似乎运行的结果不是一样的。
求指教
PIPIONE
相关分类