摘要: url: 'www.baiddu.com?type=' + event.currentTarget.dataset.type+'&id='+event.currentTarget.id 阅读全文
posted @ 2017-12-26 14:26 红叶1994 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: 共用:事件被触发时,返回鼠标指针相对于 event.X,event.Y:相对于浏览器可视区域的坐标(可视区域:不包括工具栏和滚动条); event.screenX,event.screenY:相对于屏幕显示器的坐标; event.offsetX,event.offsetY:相对于事件源元素的坐标; 阅读全文
posted @ 2017-12-21 15:57 红叶1994 阅读(225) 评论(0) 推荐(0) 编辑
摘要: html: 阅读全文
posted @ 2017-12-21 15:36 红叶1994 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //rem(function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = func 阅读全文
posted @ 2017-12-21 10:37 红叶1994 阅读(759) 评论(0) 推荐(0) 编辑
摘要: //设置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 阅读(12155) 评论(0) 推荐(0) 编辑
摘要: html: 阅读全文
posted @ 2017-12-21 10:28 红叶1994 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(3822) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2834) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(14205) 评论(0) 推荐(0) 编辑
摘要: html: css: 阅读全文
posted @ 2017-12-09 18:23 红叶1994 阅读(5226) 评论(0) 推荐(0) 编辑