logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue学习经验总结(子组件高度自适应撑满整屏)

1.在app.vue页面设置高度百分百<style lang="stylus">#app{height: 100%;margin: 0;padding: 0;}</style>2.在子组件中设置height:100%;即可具体可以参考:https://blog.csdn.net/qq_39174924/article/details/103420766...

#css
vue学习经验总结(通过url下载文件)

html部分:<span><a @click="downFile(item.id)">下载简历</a></span>//简历下载downFile(id){this.downList=this.deliveryList.find((item)=>item.id===id)let a = document.createElement('a')..

vue 学习经验总结(this.$router.push url传参后清空地址栏中的参数)

1.在a页面向b页面传参tohome(){this.$router.push(path:"/b",query:{id})}2.在b页面的cretate接收created() {this.id=this.$route.query.idthis.$router.push({ query: {} });//清空地址栏参数},

vue 关闭浏览器清空token (区分刷新)

知识点浏览器关闭执行的是 beforeunload , unload 这两个事件;而浏览器刷新执行的是beforeunload, unload, load 三个事件;思路虽然刷新与关闭都会走onbeforeunload与onunload,但可能因为刷新在加载新页面前内部机制还需要做一些准备工作,所以刷新事件在执行到onunload事件时,用的时间会比关闭事件时间长。所以,通过时间差来判断浏览器是刷

vue 关闭浏览器清空token (区分刷新)

知识点浏览器关闭执行的是 beforeunload , unload 这两个事件;而浏览器刷新执行的是beforeunload, unload, load 三个事件;思路虽然刷新与关闭都会走onbeforeunload与onunload,但可能因为刷新在加载新页面前内部机制还需要做一些准备工作,所以刷新事件在执行到onunload事件时,用的时间会比关闭事件时间长。所以,通过时间差来判断浏览器是刷

vue 学习经验总结(this.$router.push url传参后清空地址栏中的参数)

1.在a页面向b页面传参tohome(){this.$router.push(path:"/b",query:{id})}2.在b页面的cretate接收created() {this.id=this.$route.query.idthis.$router.push({ query: {} });//清空地址栏参数},

react-native的windows环境安装

具体安装步骤文档,可看:https://reactnative.cn/docs/getting-started/ windows下面 实际不需要安装python1:下载集成环境(yarn安装了 就不用安卓了)npm install -g yarn react-native-cli2:使用脚手架创建一个项目react-native init myRN3:进入项目cd myRn4:打开as(andro

#react native
vue学习经验总结(axios的使用)

1:安装axiosnpm install axios --save (页面运行的使用需要调用)2:在项目的入口main.js文件中引入 引入的时候直接引入 不要带路劲importaxiosfrom"axios";Vue.prototype.axios=axios;并且将引入的axios对象挂载到原型对象中 在其他的地方就都可以调用了在其他页面就可以调用了 但是有巨坑 如果调用数据调试 使用cons

#vue.js
到底了