您好,欢迎来到喜迪情感。
搜索
您的当前位置:首页MongoDB命令行下格式化find()返回结果:pretty()

MongoDB命令行下格式化find()返回结果:pretty()

来源:喜迪情感


MongoDB命令行下格式化find()返回结果:pretty() db.collection.find().pretty(); www.2cto.com 补充个一劳永逸的方法,在 shell 里执行下列代码 echo DBQuery.prototype._prettyShell = true ~/. mongorc . js 这样随时随地都是 pretty()了.

MongoDB命令行下格式化find()返回结果:pretty()

db.collection.find().pretty();

www.2cto.com

补充个一劳永逸的方法,在 shell 里执行下列代码

echo

"DBQuery.prototype._prettyShell = true"

>>

~/.

mongorc

.

js

这样随时随地都是 pretty()了.

Copyright © 2019- xdyj.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务