From 30f6079c6d383e49f9086b41d67a9aaa1b830e58 Mon Sep 17 00:00:00 2001 From: Gogs Date: Fri, 13 May 2016 10:20:41 +0800 Subject: [PATCH 1/2] test run cli cmd --- app/gamux/index.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/app/gamux/index.html b/app/gamux/index.html index e7473e5..d755544 100644 --- a/app/gamux/index.html +++ b/app/gamux/index.html @@ -15,6 +15,41 @@
下载
搜索
+ +
+ run cmd test +
+ + + +
From 548bde5b76c0f2c362297b18cc76239a839ad4ad Mon Sep 17 00:00:00 2001 From: Gogs Date: Mon, 16 May 2016 15:03:15 +0800 Subject: [PATCH 2/2] lanch game demo test --- app/gamux/index.html | 3 ++- app/js/functions.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/gamux/index.html b/app/gamux/index.html index 5a0aa00..ae36f22 100755 --- a/app/gamux/index.html +++ b/app/gamux/index.html @@ -64,13 +64,14 @@ console.log('子进程已退出,代码:' + code); }); + return 0; } function lanchGame(game) { console.log(game) - test_cmd() + return test_cmd() } diff --git a/app/js/functions.js b/app/js/functions.js index ab24d65..9ab4948 100755 --- a/app/js/functions.js +++ b/app/js/functions.js @@ -48,8 +48,10 @@ function Gapi(ifsync=false) { } $('.lanchgame').click(function(){ + console.log('lanch start') var namespace = $(this).attr('game'); - lanchGame(namespace); + ret=lanchGame(namespace); + console.log('lanch end'+ret) })