I have an array of (Model ) objects in view . I need to have a button that sorts the array. What is the best way for it to be done?

后端 未结 0 1602
傲寒
傲寒 2020-12-02 06:41

Should i call a Controller method (in that case how would i pass the array as a parameter)? Or can i sort it in the view without calling Controller?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题