07 2019 档案
摘要:var win_h = $(window).height();//关键代码 window.addEventListener('resize', function () { if($(window).height() < win_h){ $('.share-btn-box').hide(); }else{ $('.share-btn-box').sh...
阅读全文
摘要:/* iphoneX、iphoneXs */ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3){ .bottom{bottom: 34px;} .lastp{pad...
阅读全文
摘要:由于 Vuex 的状态存储本来就是响应式的,从 store 实例中读取状态最简单的方法,就是在计算属性中返回某个状态。 在 B 页面引入以下代码: 此时,当 A 页面通过某种方式更改了 this.$store.state.someValue 的值,B 页面中 myValue 的值便会自动得到更新。
阅读全文
摘要:https://blog.csdn.net/abcde158308/article/details/81013156
阅读全文
摘要:在vue移动端使用lib-flexible和px2remLoader适配屏幕
阅读全文