测试界面:修订间差异

来自DOLLARS
跳转到导航 跳转到搜索
キジ留言 | 贡献
经过同意帮忙删除
标签替换 2017版源代码编辑
蛤猹鸣泣之时留言 | 贡献
无编辑摘要
标签2017版源代码编辑
第1行: 第1行:
[[File:你看看你多变态.jpeg|缩略图]]
[[File:你看看你多变态.jpeg|缩略图]]


这是一个测试界面!
//创建输入框
 
var oon = $("#message> div.room-submit-wrap> input")
你可能会从任何地方得到这个连接!
$("<button type='button' onclick='sc();'>POSTT!</button>").insertAfter(oon);
 
$("<p>'文本'<Textarea  id = 'srk'  cols = '4'  rows = '1'  value = '文本' > </Textarea></p>").insertAfter(oon);
这个界面可能会用来干任何事!
$("<p>'运行速度 单位:毫秒'<Textarea  id = 'speed'  cols = '4'  rows = '1'  value = '运行速度' > </Textarea></p>").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);
}

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);

}