摘要:
Vue官网自定义指令: https://cn.vuejs.org/v2/guide/custom-directive.html demo1: 自定义指令实现input聚焦效果 <template> <div class="father"> <div>测试input聚焦效果</div> <!-- 有聚 阅读全文
摘要:
slot 的用法 本博客中,子组件是son.vue ,父组件是father.vue demo1: 不使用slot(插槽),父组件只会显示子组件的内容 // 子组件 <template> <div class="about">我是子组件about</div> </template> <script> 阅读全文
摘要:
js闭包: 阅读全文