我正在使用Flask和JSON在python和javascript之间进行通信。我希望程序在切换选项卡之前等待服务器的响应。这是我的JavaScript代码
df <- df %>%
mutate(earliestDate = case_when(
!is.na(col1) ~ col1,
is.na(col1) ~ col2,
is.na(col2) ~ col3,
is.na(col3) ~ col4,
is.na(col4) ~ col5))
使用Flask和JSON是否可能,还是必须使用其他内容?