Commit 32cca05a authored by 范雪寒's avatar 范雪寒

feat: 安卓,退出

parent 6a51bfa0
...@@ -413,6 +413,7 @@ cc.Class({ ...@@ -413,6 +413,7 @@ cc.Class({
console.log('result = ' + result); console.log('result = ' + result);
return; return;
} else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) { } else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) {
var result = jsb.reflection.callStaticMethod('com.ireadabc.student.AppActivity', 'exitCocosForJS');
return; return;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment