mirror of
https://gitee.com/tawords/tawords-docs
synced 2025-09-02 07:53:28 +08:00
较大变动
This commit is contained in:
7
docs/manual/清单 ToDo/测试用/延长文件上传时间,测试进度条.md
Normal file
7
docs/manual/清单 ToDo/测试用/延长文件上传时间,测试进度条.md
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
// 下面几行测试用,目的是延长文件上传时间,测试进度条
|
||||
// $a = rand(5, 15);
|
||||
// for ($x=0; $x<=3000000; $x++) {
|
||||
// $a+=rand(rand(5, 15), rand(25, 35));
|
||||
// }
|
42
docs/manual/清单 ToDo/测试用/登录页 浏览器书签快速填充登录.md
Normal file
42
docs/manual/清单 ToDo/测试用/登录页 浏览器书签快速填充登录.md
Normal file
@@ -0,0 +1,42 @@
|
||||
Url如下:
|
||||
|
||||
```
|
||||
javascript:void (function() {
|
||||
function debugmode(){
|
||||
document.getElementById('login_username').value = "111111";
|
||||
document.getElementById('login_password').value = "111111";
|
||||
|
||||
document.getElementById('register_username').value = "666666";
|
||||
document.getElementById('register_nickname').value = "六个六";
|
||||
document.getElementById('register_password').value = "666666";
|
||||
document.getElementById('register_password_confirm').value = "666666";
|
||||
|
||||
|
||||
getCaptchaCode(true);
|
||||
}
|
||||
function getCaptchaCode(isFailRetry){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'api/get-captcha-code-test-only.php',
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
login_captcha.value = register_captcha.value = findpwd_captcha.value = res;
|
||||
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
|
||||
window.getSelection().empty();
|
||||
},
|
||||
error: function (res) {
|
||||
if(isFailRetry) setTimeout(getCaptchaCode(false), 100);
|
||||
else{
|
||||
login_captcha.value = register_captcha.value = findpwd_captcha.value = "验证码开小差啦,点下验证码再试一次吧";
|
||||
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
var vercodeimg_onload = function() { setTimeout(debugmode(), 100) };
|
||||
login_vercodeimg.onload = vercodeimg_onload;
|
||||
register_vercodeimg.onload = vercodeimg_onload;
|
||||
findpwd_vercodeimg.onload = vercodeimg_onload;
|
||||
debugmode();
|
||||
}(document));
|
||||
```
|
Reference in New Issue
Block a user