2024-04-29 08:17:41 发布
网友
是否有可能在Dash(Python)中为按钮编写回调函数以重新加载页面(如浏览器中的updatebutton)
app.layout =html.Div([ html.Button(id="refresh"), ]) @app.callback(Output('???', '???'), [Input('refresh', 'n_clicks')]) def refresh(n): ? return ?
另一种仅通过命令刷新页面的方法是:html.Meta(httpEquiv="refresh",content="60")
html.Meta(httpEquiv="refresh",content="60")
此命令告诉html在60秒后刷新页面
解决了
html.A(html.Button('Refresh Data'),href='/'),
另一种仅通过命令刷新页面的方法是:
html.Meta(httpEquiv="refresh",content="60")
此命令告诉html在60秒后刷新页面
解决了
相关问题 更多 >
编程相关推荐