杨紫函的回答:request.getParameterValues(str)返回的是一个string数组。 String s = request.getParameterValues(str)[i]相当于: String[] strArray = request.getParameterValues(str); String s = strArray[i]; 李克新的回答:是一个String[],一般用于获得checkbox的值 刘冠华的回答:string[] 低调的沉默的回答:The GetParameterValues method returns the list of supported values for a given parameter. This method applies to parameters that support a list of specific values, as opposed to a stepped range of values. HRESULT GetParameterValues( const GUID* Api, VARIANT** Values ULONG* ValuesCount, ); MSDN里面复制出来的。 |