上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: var ratio = $(window).height() / 1080; console.log(ratio); $('body').css({ transform: "scale(" + ratio + ")", transformOrigin: "left top", backgroundS 阅读全文
posted @ 2019-04-24 15:16 FancyAnnaYL 阅读(927) 评论(0) 推荐(0) 编辑
摘要: $("#dao_pam_msg").append( '<div id="'+val.msgId+'"><span class="span1">' + title_mes + '</span><span class="'+ (val.msgId == 1 ? "span4" :"span2")+'"> 阅读全文
posted @ 2019-04-10 18:23 FancyAnnaYL 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 要求:点击1,弹框2显示,点击空白处,弹框2消失 $("#AddDevices"):按钮1 $(".addDeviceBox")弹框2 //点击添加设备弹框 $("#AddDevices").click(function(event){ event.stopPropagation();//阻止事件冒 阅读全文
posted @ 2019-04-04 17:38 FancyAnnaYL 阅读(842) 评论(0) 推荐(0) 编辑
摘要: 1:内部跳页 $(".username").click(function(){ $(window.parent.document).find('#J_iframe').attr('src','./sale/personInfo.html')}) 阅读全文
posted @ 2019-04-04 16:39 FancyAnnaYL 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 例1:onclick=channel_info_listFt(\"'+val.gid+'\",'+val.deviceIdOwner+','+val.gname+') 当长度过长的时候精度会发生变化,这个时候需要转义字符。 channel_info_listFt("23838166473925427 阅读全文
posted @ 2019-03-26 15:44 FancyAnnaYL 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 1:循环遍历取值 var arr = new Array(); $(".plus-tag a span").each(function(i) { arr[i] = $(this).text(); }); console.log(arr, 55)//["11", "22"] 55 2:循环遍历通过id 阅读全文
posted @ 2019-03-25 18:24 FancyAnnaYL 阅读(2916) 评论(1) 推荐(0) 编辑
摘要: 1.给弹框设置标记物。 <input type="hidden" id="allcomplaintlist_status" value="0"> 将value设置为0; 2:当弹框打开时,将value设置为1; $("#allcomplaintlist_status").val('1'); 3.当弹 阅读全文
posted @ 2019-03-18 11:14 FancyAnnaYL 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 鼠标事件 mousedownmousemovemouseup注意事项:被拖动的div的position属性值一定是absolute。切记不可使用margin-top:10px;而应该使用top:10px;onmousedown事件需要在window.onload时加载。如果被拖动的div上有文字会有 阅读全文
posted @ 2019-03-15 17:33 FancyAnnaYL 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 最近把一个项目的jQuery升级到最新版,发现有些页面报错Cannot read property ‘msie’ of undefined。上jQuery网站上搜了一下,原因是$.browser这个api从jQuery1.9开始就正式废除,js代码里只要用到$.browser就会报这个错。具体说明参 阅读全文
posted @ 2019-03-14 10:12 FancyAnnaYL 阅读(6265) 评论(1) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-22 17:01 FancyAnnaYL 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页