JS判断备忘

快速引入jquery并显示重点内容

(function(d,j,s,t){t=d.body.appendChild(d.createElement("script"));t.onload=s;t.src=j;})(document,'https://apps.bdimg.com/libs/jquery/2.1.4/jquery.js',function(){var el=$('.markdown-body'); $("*").not(el.find('*')).hide().css({padding:0,margin:0});el.css({padding:'30px'}).parents().andSelf().show();})
原文地址:https://www.cnblogs.com/jpss/p/7889990.html