because normal calls will require repeated writing of a large number of page prompts
class mPromise extends Promise{
//...
}
then change the original return new Promise
to return new mPromise
allows you not to write showLoading ()
and showfail ()
then
and catch
.
could you tell me how to write it in inheritance?
or how to write it in decorator mode?