小程序
dongsdh
少熬夜,多运动,记得笑
展开
-
小程序动画-循环放大缩小的动画(一闪一闪的)
var circleCount = 0; // 心跳的外框动画 this.animationMiddleHeaderItem = wx.createAnimation({ duration:1000, // 以毫秒为单位 timingFunction: 'linear', delay: 100, ...原创 2018-03-30 10:13:20 · 14900 阅读 · 2 评论 -
小程序-节点选择器
gettextHeight:function(){ var h="";////创建节点选择器 var query = wx.createSelectorQuery();// //选择id query.select('#showtext').boundingClientRect() query.exec(function (res) {// //res就是 所有标签为m...原创 2018-03-30 10:15:01 · 9867 阅读 · 1 评论 -
小程序-获取系统信息
onLoad: function () { console.log('onLoad') var that = this // 获取系统信息 wx.getSystemInfo({ success: function (res) { console.log(res); // 可使用窗口宽度、高度 console...原创 2018-03-30 10:15:41 · 418 阅读 · 0 评论 -
往返运动(左>右>左>右)
wxml<view> <view> <image style="width:32rpx; height:32rpx;background:red;" animation="{{animationMiddleHeaderItem}}"></image> </view> <原创 2018-03-30 10:17:29 · 368 阅读 · 0 评论 -
重复运动(左>右 , 左>右)
wxml<view> <view> <image style="width:32rpx; height:32rpx;background:red;" animation="{{animationMiddleHeaderItem}}"></image> </view> <原创 2018-03-30 10:18:28 · 191 阅读 · 0 评论