摘要:
//获取验证码 var wait = 60; function time(o) { if(wait == 0) { o.removeAttribute("disabled"); o.value = "获取验证码"; wait = 60; } else { o.setAttribute("disabl 阅读全文
摘要:
页面里面的调用 Data为接口 只需要获得时间差即可 var date1=new Date(data.display_begin_at); //开始时间 var date2=new Date(data.display_end_at); //结束时间 var date3=(date2.getTime( 阅读全文
摘要:
html中删除表格一行其实很简单,但是加上一个提示弹窗后,点击确定后却获取不到要删除的是哪一行,下面是一个demo html: <tr> <td> <input type="checkbox" class="checkBig" /> </td> <td>安徽车乐优</td> <td>13888888 阅读全文
摘要:
html: <div class="box1"> <div class="divA">DIVA</div> <div class="divB">DIVB</div> </div> css: <style type="text/css"> * { margin: 0; padding: 0; } .b 阅读全文
摘要:
wxml: <view class="container"> <view class="touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}" bindtouchstart="touchst 阅读全文
摘要:
弹出 fixed 弹窗后,在弹窗上滑动会导致下层的页面一起跟着滚动。 解决方法: 在弹出层加上 catchtouchmove 事件 两种方法:(在电脑上测试是没有用的,这是触摸事件。因此,需要在手机端测试,预览生成一个开发版,用手机微信扫描即可看到效果) 1. wxml: <!-- 首页弹窗 --> 阅读全文
摘要:
<span class="choose"><input type="checkbox" class="input_check" id="check3"><label for="check3"></label></span> .choose { position: relative; } .input 阅读全文
摘要:
页面出现弹窗时,底部页面不能随之滑动怎么解决? 只需将页面的body增加一个样式 overflow:hidden;就能解决 jq: //开启弹窗 $('body').attr('style','overflow:hidden') //关闭弹窗 $('body').removeAttr('style' 阅读全文
摘要:
<!-- 搜索 --> <view class="search"> <input class="search-box" placeholder='痘研商城' bindtap='goodsName'></input> <image src="{{staticImg}}index/iconSearch. 阅读全文
摘要:
<!--第一层--> <div class="first"> <div class="first_top"> <img src="../img/chartor4.png" class="first-img" /> <input type="checkbox" name="resUuids" valu 阅读全文