截取字符串String

it2022-05-09  22

def extension = fileName.split("\\.")[1] String EXCEL_FILE_EXTENSIONS = " xls, xlsx " if(EXCEL_FILE_EXTENSIONS.indexOf(extension)<0){   }   String payWay = subjectBox.getSelectedItem().value.toString() String PAYMENT_MODE_EXTENSIONS = "银行" if(payWay.indexOf(PAYMENT_MODE_EXTENSIONS)>-1){     //println "code" }

转载于:https://www.cnblogs.com/zhouweiye/p/3590794.html


最新回复(0)