一日程序百日猿

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年6月9日

摘要: js的回调函数还是很有学问的。情景 nodejs循环读取数据库,回调函数回调的时候里面的index就早就被修改了。纠结了好久错误代码:UserPokemonService.getPokemonOfUserCarry = function (connection, userId, callback) { console.log('getPokemon'); var sql = 'SELECT * FROM user_pokemon WHERE user_id = \'' + userId + '\' and place > 0; 阅读全文
posted @ 2013-06-09 11:34 超级变便便 阅读(233) 评论(0) 推荐(0) 编辑