Open zyyc5 opened 6 years ago
encoder.js 347行 for (sub in condition.sub_conditions) { var subFilter = {}; TableStore.encoder._makeColumnCondition(subFilter, condition.sub_conditions[sub]); proto.sub_filters.push(subFilter); } 如果我在 Array.prototype 上加过一些自定义方法,那么,上面的代码会遍历到我的方法并报错,array上加方法应该是很常见的操作,希望上面的代码能考虑的更严谨
for (sub in condition.sub_conditions) { var subFilter = {}; TableStore.encoder._makeColumnCondition(subFilter, condition.sub_conditions[sub]); proto.sub_filters.push(subFilter); }
路人。Array 上加方法不是很常见的操作。我不认为是最佳实践。
encoder.js 347行
for (sub in condition.sub_conditions) { var subFilter = {}; TableStore.encoder._makeColumnCondition(subFilter, condition.sub_conditions[sub]); proto.sub_filters.push(subFilter); }
如果我在 Array.prototype 上加过一些自定义方法,那么,上面的代码会遍历到我的方法并报错,array上加方法应该是很常见的操作,希望上面的代码能考虑的更严谨