阅读背景:

node js:应该使用alert来调用函数吗?

来源:互联网 

i dont know what happen with my code..i have a Node.js that queries a MySQL db within the route and displays the result to the user. My problem is how do I run the queries and block until queries are done before redirecting the user to the page they requested? if i add alert before call,function run normally and quick response..but if alert disable the function cant return any value,the function like freeze..i dont know what happen with my code..i have a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: