上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: hash模式 url路径中会出现'#'号字符 hash值不包括在http请求中,它是交由前端路由处理,所以改变hash值时不会刷新页面,也不会向服务器发送请求 hash值的改变会触发hashchange事件 history模式 整个地址重新加载,可以保存历史记录,方便前进后退 依赖H5 API和后台 阅读全文
posted @ 2021-04-02 14:10 吃饭睡觉打痘痘 阅读(69) 评论(0) 推荐(0)
摘要: transition:设置元素当过渡效果 示例: div { width:100px; transition: width 2s; -webkit-transition: width 2s; /* Safari */ } div:hover {width:300px;} transition: pr 阅读全文
posted @ 2021-04-02 11:38 吃饭睡觉打痘痘 阅读(73) 评论(0) 推荐(0)
摘要: 默认插槽 子组件 <template> <div class="my-slot"> <div>我是子组件组件</div> <slot></slot> </div> </template> 父组件 <template> <div> 我是父组件 <my-slot> <p>我是父组件插槽内容</p> </ 阅读全文
posted @ 2021-04-02 11:22 吃饭睡觉打痘痘 阅读(44) 评论(0) 推荐(0)
摘要: 扩展:OpenResty:有很多第三方的插件,下载地址:http://openresty.org/cn/download.html // 修改 nginx配置文件 nginx.conf // echoc插件可以直接输出文字 location /{ echo 'hello nginx' // echo 阅读全文
posted @ 2021-04-02 10:55 吃饭睡觉打痘痘 阅读(47) 评论(0) 推荐(0)
摘要: 通过query属性传值 //路由配置文件中 { path: '/detail', name: 'Detail', component: Detail } //跳转时页面 this.$router.push({ path: '/detail', query: { name: '张三', id: 1, 阅读全文
posted @ 2021-04-02 10:49 吃饭睡觉打痘痘 阅读(108) 评论(0) 推荐(0)
摘要: 父组件: provide(){ return { userInfo: this.userInfo } } 子孙组件: inject:["userInfo"], 阅读全文
posted @ 2021-03-31 18:12 吃饭睡觉打痘痘 阅读(68) 评论(0) 推荐(0)
摘要: 最近做了个H5的页面里面涉及到定位共呢个,因为手机其他浏览器开启定位都可以获取到定位 唯独在微信内置浏览器和QQ浏览器不行 https://blog.csdn.net/qq_27127385/article/details/103068665 阅读全文
posted @ 2021-02-05 11:44 吃饭睡觉打痘痘 阅读(593) 评论(0) 推荐(0)
摘要: 百度地图官方获取当前位置 var geolocation = new BMap.Geolocation(); geolocation.getCurrentPosition(function(r) { if (this.getStatus() == BMAP_STATUS_SUCCESS) { //位 阅读全文
posted @ 2021-01-19 11:38 吃饭睡觉打痘痘 阅读(7316) 评论(1) 推荐(0)
摘要: @font-face { font-family: mao; src: url('~@/static/mao.ttf'); } font-family: mao; 阅读全文
posted @ 2020-12-24 18:09 吃饭睡觉打痘痘 阅读(349) 评论(0) 推荐(0)
摘要: 1.width:100%;height:100%;text-align:center;-webkit-box-align:center;-webkit-box-pack:center;display:-webkit-box;(IE11不支持) 2.父级position:relative;自己==po 阅读全文
posted @ 2020-12-21 14:36 吃饭睡觉打痘痘 阅读(111) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页