js调整代码:
var selname = ‘小小‘;
selname = encodeURI(name);
window.location.href ="toStudentInfo?name="+ selname ;
java代码
String name = request.getParameter("name");
try {
name = new String(containerNo.getBytes( "iso-8859-1" ), "UTF-8" );
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
时间: 2024-10-10 04:30:50