(function(){ var i=0; var t=null; var msgTarea=document.getElementsByClassName("ChatSend-txt ")[0]; var btn=document.getElementsByClassName("ChatSend-button")[0]; function mySend(msg){ msgTarea.value= "主播可以加入异形系列吗?"; btn.click(); if(i++>3){ window.clearInterval(t); } } t = setInterval(mySend,1000*10); // 10s刷一次 }());
原文地址:https://www.cnblogs.com/shiysin/p/11258918.html
时间: 2024-11-10 19:44:29