解决问题的jquery函数
来源:互联网 发布:网络初始化失败怎么办 编辑:程序博客网 时间:2024/06/05 14:08
1.筛选栏按钮
$('.order').click(function(){ var url = "/"; $_this = $(this); var key = $(".text").val(); var account1 = $("#account1").attr('value'); var account2 = $("#account2").attr('value'); $_this.closest('ul').children().children().removeClass(); $_this.addClass('sel'); $("#morecondition span").each(function(i,v){ if($(v).attr('class')=='sel'){ url = url + $(v).attr('value') + '_'; } }) if(key.length==0){key=0;}url = url + key + "_"; url = url +account1+ "_"; url = url +account2; window.location.href="/Invest/borrowing"+url+$_this.attr('name'); console.log($_this.attr('name')); }) //搜索按钮 $(".searchbtn").click(function(){ var url = "?"; $_this = $(this); var key = $(".text").val(); var account1 = $("#account1").attr('value'); var account2 = $("#account2").attr('value'); $("#morecondition span").each(function(i,v){ if($(v).attr('class')=='sel'){ url = url + "&"+ $(v).closest('ul').attr('id') +"="+$(v).attr('value'); } }) if(key.length==0){key=0;}url = url + key + '_'; url = url + "_"+account1+ "_" + account2; window.location.href="/Invest/borrowing"+url; })
var url = "/"; $_this = $(this); var key = $(".text").val(); var account1 = $("#account1").attr('value'); var account2 = $("#account2").attr('value'); $_this.closest('ul').children().children().removeClass(); $_this.addClass('sel'); $("#morecondition span").each(function(i,v){ if($(v).attr('class')=='sel'){ url = url + $(v).attr('value') + '_'; } }) if(key.length==0){key=0;}url = url + key + "_"; url = url +account1+ "_"+account2+"_"+order+"_"+sort; console.log("/Invest/borrowing"+url); window.location.href="/Invest/borrowing"+url;2.首页头部地方滑动的效果
<li class="topNavItem"><em class="icon_notice pngfix"></em><u class="notice"><ul id="ticker" style="height:28px;overflow:hidden;text-align:left"><!------------------[[滑动显示3个公告一个论坛公告----------><li style="display: list-item;"><a href="">草根新贷盖楼活动公告</a></li><li style="display: list-item;"><a href="">关于充值、提现最新规定</a></li><li style="display: list-item;"><a href="" class="bg2" title="写给草根的几条建议">写给草根的几条建议</a></li><li style="display: list-item;"><a href="">关于草根新贷2013年中秋、十一</a></li><!------------------滑动显示3个公告一个论坛公告]]----------></ul> </u>{literal}<script> function tick(){$('#ticker li:first').slideUp(function () { $(this).appendTo($('#ticker')).slideDown(); });}setInterval(function(){ tick () }, 5000); </script>{/literal}</li>
0 0
- 解决问题的jquery函数
- 解决问题的函数
- 解决问题的php函数
- 函数的递归--解决问题的底层思路
- jQuery中aninamte不能改变背景/颜色的解决问题
- for循环的使用 反转字符串,手写strrev()函数 解决问题
- jQuery中选择器待解决问题
- 解决问题的思路、解决问题的技术 孰重孰轻
- 解决问题的方法
- 解决问题的能力
- 解决问题的方向
- 解决问题的方法
- 解决问题的乐趣
- 解决问题的思维习惯
- 递归解决问题的方法
- 解决问题的方法
- 如何更好的解决问题
- 解决问题的方法
- Spring第一个项目
- spring mvc 设置默认首页
- 孤独真的是这个时代最丰腴的筹码
- Vs2010的水晶报表的运用
- MyBatis 通过包含的jdbcType类型
- 解决问题的jquery函数
- POJ1363(解题报告)
- wcf数据契约
- hdu 1231 最大连续子序列(最大子段和)
- DllMain中要谨慎写代码避免死锁
- 黑马程序员笔记:Java基础加强之二---枚举
- UVALive - 3403 Mobile Computing
- 1483. 纪念品分组 输出好忧桑…………
- 年轻没有失败