1.jsp里定义id; 2.js里用j-query选择器获取( $('#id).val(); ) 或者docment.getEle....获取。 转载于:https://www.cnblogs.com/circlebreak/p/5479168.html