想测试一个名为EasyTimer.js()的库...与文档中说的一样,但是计时器没有启动...
有人帮忙吗?
<!DOCTYPE html>
<html>
<head>
<title>Timer</title>
</head>
<body>
<div id="basicUsage">00:00:00</div>
<script src="easytimer.js"></script>
<script>
var timerInstance = new easytimer.Timer();
</script>
<script>
var timer = new Timer();
timer.start();
timer.addEventListener('secondsUpdated', function(e) {
$('#basicUsage').html(timer.getTimeValues().toString());
});
</script>
</body>
</html>
答案 0 :(得分:0)
一切正常。删除apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: my-email@example.com
privateKeySecretRef:
name: letsencrypt-prod
http01: {}
# ...
duration: 24h
renewBefore: 12h
var timerInstance = new easytimer.Timer();
var timer = new Timer();
timer.start();
timer.addEventListener('secondsUpdated', function(e) {
$('#basicUsage').html(timer.getTimeValues().toString());
});