在state变化时,render 中判断loading、loaded 的逻辑返回对应组建。 function load(loader) { let promise = loader(); let state = { loading: true, loaded: null, ...
確定! 回上一頁