刚接触nodejs
通过nodejs mysql 取到的值 比如 rows[0].channel
我现在只能console.log,或者 response.write,
怎么才能传递给另一个函数呢 比如client 传给 server 一个值 server sql取值 ;
或者随便什么一个简单的例子 ;求大神 给一个例子
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
读写数据库属于IO操作,node中只能是以异步的方式进行,那么执行的函数中传递一个回调,执行完后执行回调就可以了