摘要: //获取验证码 var wait = 60; function time(o) { if(wait == 0) { o.removeAttribute("disabled"); o.value = "获取验证码"; wait = 60; } else { o.setAttribute("disabl 阅读全文
posted @ 2018-11-02 18:07 新恒 阅读(5077) 评论(0) 推荐(0) 编辑
摘要: 页面里面的调用 Data为接口 只需要获得时间差即可 var date1=new Date(data.display_begin_at); //开始时间 var date2=new Date(data.display_end_at); //结束时间 var date3=(date2.getTime( 阅读全文
posted @ 2018-10-31 18:46 新恒 阅读(292) 评论(0) 推荐(0) 编辑
摘要: html中删除表格一行其实很简单,但是加上一个提示弹窗后,点击确定后却获取不到要删除的是哪一行,下面是一个demo html: <tr> <td> <input type="checkbox" class="checkBig" /> </td> <td>安徽车乐优</td> <td>13888888 阅读全文
posted @ 2018-09-20 09:56 新恒 阅读(5202) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-09-19 17:12 新恒 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: wxml: <view class="container"> <view class="touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}" bindtouchstart="touchst 阅读全文
posted @ 2018-09-07 15:52 新恒 阅读(3154) 评论(0) 推荐(0) 编辑
摘要: 弹出 fixed 弹窗后,在弹窗上滑动会导致下层的页面一起跟着滚动。 解决方法: 在弹出层加上 catchtouchmove 事件 两种方法:(在电脑上测试是没有用的,这是触摸事件。因此,需要在手机端测试,预览生成一个开发版,用手机微信扫描即可看到效果) 1. wxml: <!-- 首页弹窗 --> 阅读全文
posted @ 2018-09-06 15:04 新恒 阅读(6754) 评论(3) 推荐(0) 编辑
摘要: <span class="choose"><input type="checkbox" class="input_check" id="check3"><label for="check3"></label></span> .choose { position: relative; } .input 阅读全文
posted @ 2018-09-04 18:51 新恒 阅读(4458) 评论(0) 推荐(0) 编辑
摘要: 页面出现弹窗时,底部页面不能随之滑动怎么解决? 只需将页面的body增加一个样式 overflow:hidden;就能解决 jq: //开启弹窗 $('body').attr('style','overflow:hidden') //关闭弹窗 $('body').removeAttr('style' 阅读全文
posted @ 2018-08-29 20:51 新恒 阅读(4747) 评论(0) 推荐(0) 编辑
摘要: <!-- 搜索 --> <view class="search"> <input class="search-box" placeholder='痘研商城' bindtap='goodsName'></input> <image src="{{staticImg}}index/iconSearch. 阅读全文
posted @ 2018-08-27 19:56 新恒 阅读(11986) 评论(0) 推荐(2) 编辑
摘要: <!--第一层--> <div class="first"> <div class="first_top"> <img src="../img/chartor4.png" class="first-img" /> <input type="checkbox" name="resUuids" valu 阅读全文
posted @ 2018-08-27 14:00 新恒 阅读(1160) 评论(0) 推荐(0) 编辑