$(function () { // 浜?浠 $(".zx_btm_o").click(function () { $(this).prev().toggleClass("zx_right"); }); // 杩???椤堕? $('.p_backtop').removeClass("zx_hi"); $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('.p_backtop').addClass("zx_hi"); } else { $('.p_backtop').removeClass("zx_hi"); } }); let llhei = $(document.body).height(); $('.p_backtop').click(function () { $('html ,body').animate({ scrollTop: 0 }, { duration:1200, easing:"easeInOutCubic" }); return false; }); $('.p_backbottom').click(function () { $('html ,body').animate({ scrollTop: llhei }, { duration:1200, easing:"easeInOutCubic" }); return false; }); // 娣诲??绫诲?? $(".zx_type").each(function () { var ttt = $(this).text(); $(this).parent().addClass("zx_" + ttt) }); // ?峰??瀹㈡?峰??绉板苟琛ュ???板脊?轰俊? $(".zx_haoname").each(function(){ let nametr = $(this).find("span").text(); $(this).next().next(".zx_xjie").find(".zx_zh").prepend("

" + nametr + "

") }); // 寰?俊琛ュ??淇℃? $(".zx_6").find(".zx_zh").prepend("

?????井淇′?缁寸??
?虫敞??浠??ㄦ??

") $(".zx_6").find(".s_img").prepend("

寰?俊浜?缁寸??

") });