Kendo-ComboBox中ValuePrimitive的使用

The usage of ValuePrimitive in Kendo-ComboBox

kendo-combobox angular 中 valuePrimitive 属性的真正优势是什么? 我需要使用此属性的一些代码示例使用此属性的优点

我认为这取决于您的型号,例如

假设您有一个包含两个组合的表格。

表单的对象就像

{ Combo1:{value:1,text:"One"}, Combo2:{value:3,text:"Three"}}

但在您的 post 中,您只需发送 ID

{ Combo1:1, Combo2:3}

只存储原语并只发回 id 会更简单。

在我的例子中,我的对象具有相关对象和枚举,我的枚举显示时组合设置为 ValuePrimitive。