jquery from转json

function check() {debugger;
		    var params = $("#formid").serializeArray();
	        var values = {};
	        for (var item in params) {
	            values[params[item].name] = params[item].value;
	        }
	        var t = JSON.stringify(params);
	        var tt = JSON.stringify(values);
// 		    window.location="/RASPWAF/ServletTest?data="+JSON.stringify(values);  
		
	}

你可能感兴趣的:(js,jsp,jquery)