摘要:
<div class="containering"> <div id="slide" class="slide" alt="star"> <div class="img"><img src="666.png" /></div> <div class="img"><img src="666.png" 阅读全文
摘要:
如果想将input进行克隆,然后在后面显示出来并修改input里面的文字,这时就会发现一个问题,就是你克隆出来的value值始终是你克隆时的value,检查页面元素你就会发现,这时需要对克隆之后的input进行处理 就是将克隆的得到的input先获取其val()属性,然后再讲其val()中的值赋给自 阅读全文
摘要:
<view class='right'> <text bindtap='label' class="{{item.bobo==true ? 'labelColor':''}}" data-index="{{index}}" data-bobo="{{item.bobo}}" wx:for="{{la 阅读全文
摘要:
//获取验证码 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 阅读全文