gpt4 book ai didi

javascript - 给jquery一个来自ZK计时器(或标签)的值

转载 作者:行者123 更新时间:2023-12-03 12:30:28 25 4
gpt4 key购买 nike

大家好,我正在开发一个 zk 项目,我需要将计时器的“延迟”值发送到 Jquery 函数,我尝试使用 EL,但它似乎不适合我,这是我的代码,你能帮我吗? (我没有 jquery 经验)

<zk>
<html>
<div id="countdown1"></div><br></br>
<label id="here" >${refreshTimer.deplay}</label>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery-1.9.1.min.js"></script>
<script src="jquery.timeTo.min.js"></script>
<script>

$('#countdown1').timeTo({
seconds: Number($('#here').text())/10000,// i want to insert a the delay of timer here.
theme: "black",
fontSize: 20
});
</script>
</html>

</zk>

最佳答案

我没有尝试过,但据我记得,我遇到了同样的问题,直到我将 $('#here').text() 更改为 $( '#here').val()

关于javascript - 给jquery一个来自ZK计时器(或标签)的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23959304/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com