看了一个基础教程,里面有一个$where的例子:
function(){
for(var current in this){
if(this[current]>5){
return true;
}
}
return false;
}
里面他用了this[current],我就在想this具体是什么current又是什么,但是在mongodb中无法使用console.log alert等js方法来调试,应该如何调试?
看了一个基础教程,里面有一个$where的例子:
function(){
for(var current in this){
if(this[current]>5){
return true;
}
}
return false;
}
里面他用了this[current],我就在想this具体是什么current又是什么,但是在mongodb中无法使用console.log alert等js方法来调试,应该如何调试?
print()