收到
<script>$(function(){var width =document.documentElement.clientWidth;function Tabslid(namber,twoe){$(\"#segmentedControl\").find(\"a\").eq(namber).addClass(\"mui-active\");var tt = $(\"#segmentedControl\").find(\"a\").eq(namber).attr(\"href\");$(tt).addClass(\"mui-active\");$(tt).find(\"a[href=\'#\"+twoe+\"\']\").addClass(\"mui-active\");$(tt).find(\"[id=\'\"+twoe+\"\']\").addClass(\"mui-active\");var lengthw = width*$(tt).find(\".mui-segmented-control a\").index($(\"a[href=\'#\"+twoe+\"\']\"))$(tt).find(\".mui-slider-group\").css({\"transform\": \"translate3d(\" + -lengthw + \"px, 0px, 0px)\",\"transition-duration\": \"0ms\"})//$(tt).find(\"[href=\'#\"+twoe+\"\']\").click();//$(tt).find(\"[href=\'#item2mobile\']\").addClass(\"mui-active\");//$([\"href=\'#\"+ twoe +\"\'\"]);//$([href=twoe]).addClass(\"mui-active\");//$(tt).find(\"[href=\" + \"#\" + twoe + \"]\").addClass(\"mui-active\");//$(tt).find(\"[href=\'#item2mobile\']\").addClass(\"mui-active\");//console.log(twoe);//$(\"[href=\'#\" + twoe + \"\']\").addClass(\"mui-active\");//$(\"[href=\'#twoe\']\");//$(tt).find(\"[href=\'#twoe\']\").addClass(\"mui-active\");//console.log($(\"[href=\'#\" + twoe + \"\']\"));}var te = \"item2mobile\";Tabslid(0,te);})</script>
转载于:JQuery/3427060