mongodb - 在 mongo shell 中取消设置 const
问题描述
有没有办法在 mongo shell 中取消设置const 。
尝试删除运算符时,我得到以下输出:
> const myconst = {"test":123}
> myconst
{ "test" : 123 }
> delete myconst
false
>
解决方案
推荐阅读
- reactjs - 有没有办法将组件引用存储在状态中?还是更“反应”的选择?
- matlab - 如何将 "spectrogram(x,512,256,512,Fs,'yaxis')" 转换为八度 "specgram" 函数?
- ansible - 我如何使用 ansible 模块 proxmox_kvm 调整硬盘大小
- php - 如何在 Codeigniter 中获取 CKEditor 值?
- php - 不支持编码格式 (tmp)
- mysql - 从 MySql 导入 Sqoop 失败,线程“main”java.lang.NoClassDefFoundError 出现异常
- python - pipenv 如何将 Pipfile 与项目的入口点相关联?
- javascript - 如何将上下文使用者传递给仅由 React Router 呈现的组件(Event.js)?
- php - 使用 ajax 更新 mysql 结果(设置为已删除)而不刷新页面?
- flutter - 如何删除卡片中的行之间的空间(Flutter)