利用原生js修改element2 el-calendar按钮的demo 需要把今天改成当前交易日,切按钮点击事件也切换成跳转到当前交易日而不是今天 代码贴图 mounted() { const btn = this.$refs.dateCalendar.$children[0].$children[1].$el btn.innerText = '当前交易日' btn.onclick = (e) => { this.currentDay = this.tradeDate } },