APIcloud return to the previous level or return to the previous page

I always thought it was

  api.closeWin({
       name: api.winName
  })

However this is to close the page

The following is to return to the previous level

tlml

<div id='back'></div>

js

api.historyBack({
   },function(ret,err){
       if (!ret.status) {
           api.closeWin();
       }
  });

Guess you like

Origin blog.csdn.net/qq_43233137/article/details/88719337