12 2021 档案
摘要:created() { // 监听回车事件 document.onkeydown = (e) => { let _key = window.event.keyCode; if (_key 13) { this.login(); } } }, beforeDestroy() { document.on
阅读全文
摘要:.left-menu::-webkit-scrollbar{ display: none; /* 谷歌浏览器*/ } .left-menu{ scrollbar-width: none; /* firefox */ -ms-overflow-style: none; /* IE 10+ */ ove
阅读全文
摘要:父向子传值 1.父组件通过v-bind:属性绑定的形式,把数据传递给子组件 <counter :number="count"></counter> 2.子组件通过props接收父组件传递过来的数据 <div>子组件的值~~{{number}}</div> export default { name:
阅读全文