如何在 N2O 框架叉中显示来自外部进程的信息。
像这样的代码:
tokyoWeather() ->
timer:sleep(10000),
Data = getTokyoWeater(),
??? SHOW_ON_PAGES,
tokyoWeather().
lisbonWeather() ->
timer:sleep(10000),
Data = getLisbonWeater(),
??? SHOW_ON_PAGES,
lisbonWeather().
第 1 页:
body() ->
[ #panel { id=TokyoWeather text= <<>> },
#panel { id=LisbonWeather, text= <<>> },
...].
第2页:
body() ->
[ #panel { id=TokyoWeather text= <<>> },
#panel { id=LisbonWeather, text= <<>> },
...].
提前致谢。