groovy array remove the brackets

前端 未结 2 1616
忘了有多久
忘了有多久 2021-01-17 06:39
  def colarray=[]
                    def num
                    def newRole = rolecol.split(\',\')
                    def len = newRole.size()
                            


        
2条回答
  •  醉话见心
    2021-01-17 07:34

    the [] are there, because you are doing an implicit toString on the list. use colarray.join(',')

提交回复
热议问题