测试界面

来自DOLLARS
蛤猹鸣泣之时讨论 | 贡献2022年9月25日 (日) 20:57的版本
跳转到导航 跳转到搜索

//创建输入框 var oon = $("#message> div.room-submit-wrap> input") $("<button type='button' onclick='sc();'>POSTT!</button>").insertAfter(oon);

$("

'文本'<Textarea id = 'srk' cols = '4' rows = '1' value = '文本' > </Textarea>

").insertAfter(oon); $("

'运行速度 单位:毫秒'<Textarea id = 'speed' cols = '4' rows = '1' value = '运行速度' > </Textarea>

").insertAfter(oon);

yi = 0 function hhh3(){ //核心部分

   hhh = $("#srk").val().split("。");
   HHH = hhh.length;  
  
   if(yi == HHH-1){
       clearInterval(myshhh2);
       $.post("#",{message: "/me结束"});
       yi = 0;
   }
   else{
       $.post("#",{message: "/me"+hhh[yi]+"。"});
       yi = yi+1;
   }

} function sc(){ //循环部分

   speed2 = $("#speed").val();
   myshhh2 =  setInterval(hhh3,speed2);

}