会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
红叶1994
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
下一页
2017年12月26日
小程序url传多个参
摘要: url: 'www.baiddu.com?type=' + event.currentTarget.dataset.type+'&id='+event.currentTarget.id
阅读全文
posted @ 2017-12-26 14:26 红叶1994
阅读(1834)
评论(0)
推荐(0)
2017年12月21日
event事件坐标
摘要: 共用:事件被触发时,返回鼠标指针相对于 event.X,event.Y:相对于浏览器可视区域的坐标(可视区域:不包括工具栏和滚动条); event.screenX,event.screenY:相对于屏幕显示器的坐标; event.offsetX,event.offsetY:相对于事件源元素的坐标;
阅读全文
posted @ 2017-12-21 15:57 红叶1994
阅读(229)
评论(0)
推荐(0)
透明度轮播
摘要: html:
阅读全文
posted @ 2017-12-21 15:36 红叶1994
阅读(186)
评论(0)
推荐(0)
rem函数
摘要: //rem(function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = func
阅读全文
posted @ 2017-12-21 10:37 红叶1994
阅读(778)
评论(0)
推荐(0)
vue全局函数存储cookie读取cookie
摘要: //设置cookie,放在main.jsVue.prototype.setCookie = function(c_name,value,expiredays) { var exdate=new Date() exdate.setDate(exdate.getDate()+expiredays) do
阅读全文
posted @ 2017-12-21 10:36 红叶1994
阅读(12187)
评论(0)
推荐(0)
vue发送验证码状态变化
摘要: html:
阅读全文
posted @ 2017-12-21 10:28 红叶1994
阅读(786)
评论(0)
推荐(0)
2017年12月20日
小程序网络请求方法&&半透明提示框(成功,警告,错误,提示)封装
摘要: util.js function request(url, data, cb) { wx.request({ url: 'https://www.baidu.com' + url, data: data, method: 'POST', header: { 'content-type': 'appl
阅读全文
posted @ 2017-12-20 15:24 红叶1994
阅读(3867)
评论(0)
推荐(0)
2017年12月18日
小程序选项卡,可左右滑动
摘要: wxhtml: <view class="swiper-tab"> <view class="tab-item swiper-tab-item {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="clickTab">我要取专票</view
阅读全文
posted @ 2017-12-18 17:36 红叶1994
阅读(2862)
评论(0)
推荐(0)
小程序class&style和三元表达式的结合使用
摘要: class: <view class="tab-item {{currentTab==0 ? 'on' : ''}}" >我要取票</view> style: <view current="{{currentTab}}" style="height:{{currentTab==1?Height+'r
阅读全文
posted @ 2017-12-18 17:26 红叶1994
阅读(14234)
评论(0)
推荐(0)
2017年12月9日
css transform360度旋转 外边旋转内容不旋转
摘要: html: css:
阅读全文
posted @ 2017-12-09 18:23 红叶1994
阅读(5329)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告