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.
在我的应用程序中,我必须解析一个内部包含其他可打包内容的大对象,因此需要 1-2 秒的时间。
我想在应用程序解析我的对象所需的时间内实现 UI 反馈,但不知道该怎么做。解析进行时如何显示状态栏或其他内容?
谢谢你。
实现一些逻辑来显示微调器或一些加载图标,并在等待对象解析时显示它。
showSpinner(); Object object = Object.parse(value); hideSpinner();