Prompt this error
某草草2017-05-02 09:25:40
Your mistake is that you called a count method. According to the name, it takes the quantity, but your question asked about summation. I don’t know what you want to do specifically. However, since ProductCategoryDataModel is customized by you, if its parent class does not have a count or sum method, you need to implement the corresponding method yourself before you can call it.
怪我咯2017-05-02 09:25:40
If you are counting the number of dictionaries,
somedict.allKeys.count
or
somedict.allValues.count
漂亮男人2017-05-02 09:25:40
What class does
model inherit from?
In addition, you can implement the -count;
method by yourself