日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

VUE iscroll(银联二维码,浩哥页面用过)

發(fā)布時(shí)間:2025/4/14 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 VUE iscroll(银联二维码,浩哥页面用过) 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

基本使用方法:

$ npm i vue-iscroll-view --save-dev $ npm i iscroll --save-dev

  

import IScrollView from 'vue-iscroll-view'/* Using these kinds of IScroll class for different cases. */ import IScroll from 'iscroll' // import IScroll from 'iscroll/build/iscroll-infinite.js // import IScroll from 'iscroll/build/iscroll-probe.js // import IScroll from 'iscroll/build/iscroll-view.js // import IScroll from 'iscroll/build/iscroll-zoom.js // import IScroll from 'iscroll/build/iscroll-lite.jsVue.use(IScrollView, IScroll)

  

<template><iscroll-view class="scroll-view">Your contents</iscroll-view> </tempalte><style> .scroll-view {/* -- Attention: This line is extremely important in chrome 55+! -- */touch-action: none;/* -- Attention-- */position: fixed;top: 0;bottom: 0;left: 0;right: 0;overflow: hidden; } </style>

  

手機(jī)上不能點(diǎn)擊的處理辦法

<template><iscroll-view :options="{preventDefault: false}">Your contents</iscroll-view> </tempalte>

  

滾動(dòng)事件

<template><iscroll-view @scrollStart="log">Your contents</iscroll-view> </tempalte><script> export default {methods: {log (iscroll) {console.log(iscroll)}} } </script>

  

返回頂部

<template><div><iscroll-view ref="iscroll">Your contents</iscroll-view><button @click="scrollToTop">Scroll To Top</button></div> </tempalte><script> export default {methods: {scrollToTop () {const iscroll = this.$refs.iscrolliscroll.scrollTo(0, 0, 100)iscroll.refresh()}} } </script>

  

上拉下拉事件

<template><iscroll-view @pullUp="load" @pullDown="refresh">Your contents</iscroll-view> </tempalte><script> export default {methods: {refresh (iscroll) {// Refresh current data},load (iscroll) {// Load new data}} } </script>

  

轉(zhuǎn)自:http://blog.csdn.net/weixin_38788947/article/details/77447785?fps=1&locationNum=3

轉(zhuǎn)載于:https://www.cnblogs.com/ourLifes/p/8386744.html

總結(jié)

以上是生活随笔為你收集整理的VUE iscroll(银联二维码,浩哥页面用过)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。