#### 核心代码 ~~~ var main = plus.android.runtimeMainActivity(); main.moveTaskToBack(false); ~~~ #### 完整代码 ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <script> // 扩展API是否准备好,如果没有则监听“plusready"事件 if(window.plus) { plusReady(); } else { document.addEventListener("plusready", plusReady, false); } // 扩展API准备完成后要执行的操作 function plusReady() { document.getElementById("ht").addEventListener("click", function() { plus.nativeUI.alert('3秒后开始后台运行啦'); setTimeout(function(){ var main = plus.android.runtimeMainActivity(); main.moveTaskToBack(false); },3000); }); } </script> </head> <body> <button id="ht">后台运行</button> </body> </html> ~~~