我现在使用的vuex来管理状态代码如下:<template>
<div id="lyric">
<mt-button @click.native="getLyric">显示歌词</mt-button>
<div class="lyric-panel">
<input type="text" :value="audio.currentTime" @change="Talert">
<div v-for="txt in lycs.txts" @>{{txt}}</div>
</div>
</div></template><script>
import { mapGetters } from 'vuex'
import axios from 'axios'
export default{
data(){ return { lycs:{}
}
}, computed:{
...mapGetters(['audio', 'audioLoadding', 'showPlayer', 'isPlay'])
}, methods:{
Talert(){ console.log("audio.currentTime");
}现在的问题是,<input type="text" :value="audio.currentTime" @change="Talert">可以正常获取到值,但是change事件不起作用,我该如何监听这个audio.currentTime的变化呢?
添加回答
举报
0/150
提交
取消