01 2022 档案
摘要:前言 vue组件非常常见的有父子组件通信,兄弟组件通信。而父子组件通信就很简单,父组件会通过 props 向下传数据给子组件,当子组件有事情要告诉父组件时会通过 $emit 事件告诉父组件。今天就来说说如果两个页面没有任何引入和被引入关系,该如何通信了? 如果咱们的应用程序不需要类似Vuex这样的库
阅读全文
摘要:在当前页面跳转 1. 不带参数 this.$router.push('/home') this.$router.push({name:'home'}) this.$router.push({path:'/home'}) 2. query传参 this.$router.push({name:'home
阅读全文
摘要:git pull之后代码发生冲突,需要合并(merge),在webstorm中进行可视化操作,页眉VCS,选择Git→Resolve Conflicts,然后根据提示进行合并。
阅读全文
摘要:获取文件md5校验值:certutil -hashfile 123.MP4 MD5
阅读全文
摘要:动态切换组件 <component v-bind:is="引入组件后的组件名"></component> // 修改is后的值这样就能动态切换组件了,在切换的组件很多时,比较方便。 keep-alive <keep-alive :include="['ProAdminContract']"> <ro
阅读全文
摘要:文字镂空效果 <html> <body> <div> <p> 文字镂空效果 </p> </div> </body> </html> HTML p{ -webkit-text-stroke: 2px purple; /* 文字轮廓线条属性 */ color:transparent; backgroun
阅读全文