要进行严厉的自我克制,因为克制本身就可以作为一种精神寄托——泰戈尔
//得到当前时间戳的函数 由于return了这个时间戳。 该函数已经typeod(timeGet) == number
function timeGet(){
var oDate = new Date();
var timeThis = parseInt(oDate.getTime()/1000);
return timeThis;
}
// 60秒倒计时 用了jq框架
function verificationCodeCountdown(){
var timer = null;
var timeMax = 60;//最大显示 60 秒
timer = setInterval(function(){
timeMax--;
if(timeMax<=0){
$('.getVerifyD').html('获取验证码');//一个标签的内容
clearInterval(timer);
}else{
$('.getVerifyD').html(timeMax+'秒重试');//一个标签的内容
}
},1000);
}
// 判断手机系统(学习的)
function phoneCheck(){
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
//安卓手机
if(confirm("您已注册成功")){
console.log("android")
}
} else if ( u.indexOf('iPhone') > -1 ) {
//苹果手机
if(confirm("您已注册成功")){
console.log("iphone")
}
}
}//判断手机系统 End
window.location.href = "https://baidu.com"; //js window对象 可以跳转链接。
//英语单词
[
{data:数据},{date:日期}
]
浙公网安备 33010602011771号