JS判斷備忘

jpss發表於2017-11-24

快速引入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();})

相關文章