//ScrollView.js
//这里的方法可以用来控制自己想要显示的样式,或者不写这些方法,
//显示默认在.wxml中设计的样式
var order = ['green', 'red', 'yellow', 'blue', 'green']
Page({
// //数据交互
// data: {
// toView: 'green'
// },
// //三个输出语句,当滑动的时候进行输出
// //最上面
// upper: function(e) {
// console.log(e)
// },
// //最下面
// lower: function(e) {
// console.log(e)
// },
// //滑动中
// scroll: function(e) {
// console.log(e)
// },
// scrollToTop: function(e) {
// this.setAction({
// scrollTop: 0
// })
// },
// //下面的方法没有调用
// tap: function(e) {
// for (var i = 0; i < order.length; ++i) {
// if (order[i] === this.data.toView) {
// this.setData({
// toView: order[i + 1],
// scrollTop: (i + 1) * 200
// })
// break
// }
// }
// },
// tapMove: function(e) {
// this.setData({
// scrollTop: this.data.scrollTop + 10
// })
// }
})
没有合适的资源?快使用搜索试试~ 我知道了~
微信小程序学习demo:视图控件View、ScrollView、Swiper.rar
共25个文件
js:7个
wxss:6个
json:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 124 浏览量
2023-01-25
15:23:28
上传
评论
收藏 15KB RAR 举报
温馨提示
微信小程序demo
资源推荐
资源详情
资源评论
收起资源包目录
微信小程序学习demo:视图控件View、ScrollView、Swiper.rar (25个子文件)
微信小程序学习demo:视图控件View、ScrollView、Swiper
小程序开发平台.url 120B
WXViewScrollSwiperDemo-master
pages
index
index.wxml 792B
index.js 415B
Component
ScrollView
ScrollView.json 2B
ScrollView.wxml 2KB
ScrollView.js 1KB
ScrollView.wxss 263B
Swiper
Swiper.json 2B
Swiper.js 690B
Swiper.wxml 1KB
Swiper.wxss 69B
View
View.wxml 890B
View.json 2B
View.js 21B
View.wxss 513B
index.json 2B
index.wxss 341B
logs
logs.json 54B
logs.js 266B
logs.wxml 194B
logs.wxss 106B
app.json 435B
app.js 719B
utils
util.js 460B
app.wxss 552B
共 25 条
- 1
资源评论
金枝玉叶9
- 粉丝: 132
- 资源: 7640
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功