$(document).ready(function () { // $(".diyi>li").click(function () { // $(this).parent().siblings().children("li").removeClass("menuActive") // $(this).siblings("li").removeClass("menuActive") // $(this).addClass("menuActive") // }) $(".searchInput").focus(function () { console.log($(this)) $(this).css("width", "300px") }).blur(function () { $(this).css("width", "133px") }) $(".slideListTitle").click(function () { $(this).siblings("ul").removeClass("activeUl") $(this).next("ul").addClass("activeUl") }) $(".sliderItem").click(function () { //alert("点击到了啊") $(this).parent(".activeUl").siblings("ul").children("li").removeClass("activeLi") $(this).siblings("li").removeClass("activeLi") $(this).addClass("activeLi") }) //二级联动 }); //金额显示 $(document).ready(function () { $.ajax({ type:"post", url:"http://fd.mrobay.com/me/home/index.do?htmlflag=true&money=true", success:function(data){ debugger; var JsonObjs = eval("(" + data + ")"); //获取前台信息的id var zhye = $("#zhye"); var sdzj = $("#sdzj"); var kyzj = $("#kyzj"); //获取后台的相应信息 var zhye1 = JsonObjs[0].acc.accamtStr; var sdzj1 = JsonObjs[0].acc.lockamtStr; var kyzj1 = JsonObjs[0].acc.freeamtStr; //给前台页面赋值 zhye.html(zhye1); sdzj.html(sdzj1); kyzj.html(kyzj1); } , dateType:"json" }); }) //加载页面左侧的导航树 $(document).ready(function () { var curMname = localStorage.getItem("curMname"); var curPath = localStorage.getItem("curPath"); $.ajax({ type:"post", url:"http://fd.mrobay.com/me/home/index.do?treeflag=true&curMname="+curMname+"&curPath="+curPath, success:function(data){ var JsonObjs = eval("(" + data + ")"); $("#tree").html(JsonObjs[0].treeHtml); } , dateType:"json" }); })