How to identify the same name in a form, different content

xiaoxiao2021-03-06  43

We often use HashMap We use HashMap ArrayList First: Hashmap Result = New HashMap (); ArrayList Context = New ArrayList (); Result.Put ("Context", Context); below: for (int i = 0; i <3; i ) {hashmap row = new hashmap (); row.put ("count", "" " " "); context.add (row);} This will put all content Add it to the result. If you print Result, you will see: {[{"count" = "1st"}] [{"count" = "2"}] [{"count" = "3"}]} Here, use coustomtag, if you write the same name "count" in a row, you can see the list.

转载请注明原文地址:https://www.9cbs.com/read-76938.html

New Post(0)