想要透過Vue.js 來取得指定元素的寬與高,可以透過ref 這個attr,再透過this.$refs.infoBox. ... let app=new Vue({ el: "#app", data: { width:0, ...
確定! 回上一頁