Java集合同JS数组转换

阅读更多



 
public List convertNames(final List inList) {
    List outList = new ArrayList();
    for (String name : inList) {
      outList.add(name.toUpperCase());
    }
    return outList;
}
 
function callSigTestClassConvertNames() {
SigTestClass.convertNames( [ "tony", "silvio", "christopher", "paulie",
"bobby" ], callSigTestClassConvertNamesCallback);}
function callSigTestClassConvertNamesCallback(inResp) {alert(inResp);}

你可能感兴趣的:(Java,JavaScript)