上代码: <script> function randArticle1(){ let as=$('.click-ul').children('li'); url=$(as[Math.floor(Math.random()*as.length)]).children('a').first().attr('href'); if(url==''...
放到全局JS里即可 //屏蔽右键菜单 document.oncontextmenu = function (event){ if(window.event){ event = window.event; }try{ var the = event.srcElement; if (!((the.tagName == 'INPUT' &...