Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个值存储在一个名为 value 的变量中。值在后台任务中运行,使其每秒增加一个左右。我现在有
get '/' do "#{value}" end
我怎样才能每 10 秒重新加载一次此页面,或者只是刷新它以显示新的 value 值?
放入<meta http-equiv="refresh" content="10">html头
<meta http-equiv="refresh" content="10">