清波引(横舟·是时以湖湘廉使归),
张炎 ,宋代, 江涛如许。更一夜听风听雨。短篷容与。盘礴那堪数。弭节澄江树。不为莼鲈归去。怕教冷落芦花,谁招得旧鸥鹭。
寒汀古溆。尽日无人唤渡。此中清楚。寄情在谭F7E6。难觅真闲处。肯被水云留住。冷然棹入川流,去天尺五。
// 状态1:音频正在播放 → 暂停
if (audio && !audio.paused) {
audio.pause();
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
return;
}
// 状态2:音频已暂停 → 尝试继续播放,加catch兜底
if (audio && audio.paused) {
audio.play().then(()=>{
btn.innerText = "暂停";
btn.style.backgroundColor = 'green';
btn.style.color = 'white';
}).catch(e=>{
console.error("续播失败Safari限制:",e);
alert("苹果浏览器续播受限,将重新生成音频");
audio = null;
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
})
return;
}