[nodejs]er_bad_field_error NaN in where clause

1 前言

nodejs 运行时,出现以下情况er_bad_field_error NaN in where clause。

2 分析

原来是userid = NAN传进来了,生成userid时出错了。

3 解决方案

解决userid出现NAN情况即可,在执行前,对字段做检测

4 小结

仅作为记录使用。

猜你喜欢

转载自www.cnblogs.com/fanbi/p/9294379.html