We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/* * cargo 说明: * key代表类目/子类目名称 * value 为 number时,代表这个类目的数量,为object 时,代表下一层货物的集合,最多嵌套两层 * { * productA:{ // 代表货物的类目名称 * a:1, // 1 代表子类目 a 的数量 * b:2, * c:{ // c 代表货物的子类名称 * c1:1, // c1代表货物的子类名称 * } * }, * productB:{ * e:6 * } * } * * 爆仓情况:如转入 {productA:{a:3,c:1}} 转出 {productA:{a:4}},就会发生子类目a爆仓,此时要返回报错。 * */ class Depository { /** * @param options */ constructor(options) {} // 转入货物 transferIn(cargo) {} // 转出货物 transferOut(cargo) {} }
每日一题会在下午四点在交流群集中讨论,五点小程序中更新答案 欢迎大家在下方发表自己的优质见解 二维码加载失败可点击 小程序二维码
The text was updated successfully, but these errors were encountered:
No branches or pull requests
扫描下方二维码,收藏关注,及时获取答案以及详细解析,同时可解锁800+道前端面试题。
The text was updated successfully, but these errors were encountered: