摘要: imgLoad:function(){ var that = this; wx.getSystemInfo({ success: function (res) { // 获取设备宽度 var infoWidth = res.screenWidth-20; ... 阅读全文
posted @ 2018-03-06 14:55 zc_boy 阅读(915) 评论(0) 推荐(0) 编辑
摘要: wxml: <image src="{{attachurl}}{{vo.cover}}" class='list-img' bindload="imageLoad" data-index="{{ index }}" style="width:{{ images[index ].width }}rpx 阅读全文
posted @ 2018-03-06 14:06 zc_boy 阅读(517) 评论(0) 推荐(0) 编辑
摘要: let endtime = that.data.endtime; let endtime = that.data.endtime; setInterval(function () { let nowtime = Date.parse(new Date()) / 1000; if ((endtime 阅读全文
posted @ 2018-01-24 10:21 zc_boy 阅读(535) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <title>纯JS省市区联动</title> <meta charset="UTF-8"> <!--<script type="text/javascript" src="jsAddress.js"></script>--></head><b 阅读全文
posted @ 2017-10-24 15:51 zc_boy 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: $('input:radio[name="purchasetype"]:checked').val() == '定制单') 阅读全文
posted @ 2017-10-23 19:38 zc_boy 阅读(204) 评论(0) 推荐(0) 编辑
摘要: //复选框if ($(this).is(':checked')==true){ console.log(111)}if ($(this).is(':checked')==false){ console.log(222)}//下拉框//获取select 选中的 text : $("#").find(" 阅读全文
posted @ 2017-10-08 17:35 zc_boy 阅读(831) 评论(0) 推荐(0) 编辑
摘要: //标签写法为onsubmit="return sumbit_sure"function sumbit_sure(){ var gnl=confirm("确定要提交?"); if (gnl==true){ return true; }else{ return false; }} 阅读全文
posted @ 2017-10-08 17:13 zc_boy 阅读(468) 评论(0) 推荐(0) 编辑
摘要: $('#').click(function () { $.ajax({ type:"get", dataType:"json", url:"#", success:function (msg) { //返回数据处理 console.log(msg); var length = msg.length; 阅读全文
posted @ 2017-10-08 17:09 zc_boy 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: //获得点击图片的url var that = $(this).css("backgroundImage").replace('url(','').replace(')','');//给所选元素更改url$('#').css('background','url('+that+') no-repeat 阅读全文
posted @ 2017-10-08 17:06 zc_boy 阅读(4211) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden; text-overflow: ellipsis; display: box; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 阅读全文
posted @ 2017-08-26 17:32 zc_boy 阅读(141) 评论(0) 推荐(0) 编辑