console
linfui.use(['method'], function () {
Vue.prototype.$m = linfui.method;
new Vue({
el: '#app',
data: {
resuilt:'请在屏幕左右滑动'
},
methods:{
},
created(){
setTimeout(()=>{
this.$m.imgLoad('.img_box','.oimg')
},50)
}
})
});
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/linf-ui@latest/dist/linfui.js"></script>
<div id="app" v-cloak>
{{$m.countArr([1,2,3,4,5,3,2,1],3)}}
<div class="img_box">
<img src="https://my.weblf.cn/xly/demo/img/jpg57.jpg" class="oimg" >
</div>
</div>
body{
background:#f3f5f6;
}
[v-cloak] {
display: none;
}
*{
margin: 0;
padding: 0;
}
html,body{
height: 100%;
overflow: hidden;
}
.img_box{
width: 200px;
height: 200px;
overflow: hidden;
margin: 0 auto;
}