但是通过 ref 属性还有另一种特定的vue方式。 mounted () { this.matchHeight() }, matchHeight () { let height = this.$refs.infoBox.clientHeight; }.
確定! 回上一頁