w*s 发帖数: 7227 | 1 app.get('/startMyApp', function(req, res)
{
console.log("- - - - -" + myAppStatusCache + "- - - - -");
if (myAppStatusCache == "status=2;")
{
console.log("hello 1 ......");
console.log(myAppStatusCache+"-----------");
} else {
console.log("hello 2 ......");
console.log(myAppStatusCache+"-----------");
}
res.sendfile('myAppStatus.html');
});
output:
- - - - -status=2;- - - - -
hello 2 ......
status=2;-----------
i'm so confused, why it's not... 阅读全帖 |
|