摘要:
<li @click='获取li标签' :ref="center-li" id="center-li" > 我是li标签 </li> <script> methods:{ 获取li标签(){ var ulArr = this.$refs.center-li; console.log(ulArr ) 阅读全文
摘要:
var str = realFormatSecond(e.target.currentTime); console.log(e.target.scrollTop); //1255256252 console.log( str ); // 05:31 function realFormatSecond 阅读全文
摘要:
parseLyric(lyric) { var lines = lyric.split(/\n/); //使用/n换行,将数据切成一个数组 var getLtricTime = /\[\d{2}:\d{2}.\d{2}\]/g; var arr = []; while (!getLtricTime. 阅读全文