1. 在Service中重写下面的方法,这个方法有三个返回值, START_STICKY是service被kill掉后自动重写创建 @Override public int onStartCommand(Intent intent, int flags, int startId) { return START_STICKY; } 2. 在Service的onDestroy()中重启Service. @Override public void onDestroy() { super.onDestr
感谢:https://blog.csdn.net/qq_35624642/article/details/78243413 index.html <body> <div id="app"></div> <!-- built files will be auto injected --> </body> App.vue <template> <div id="app"> <h1