在js中获取request域中的内容

1、可以使用小脚本<%%>实现:

var pro_id=<%request.getPro_id()%>;

2、使用隐藏域实现:

 <input type="hidden" value="${requestScope.product.getPro_id()}" id="pro_id"/>

var pro_id= $('pro_id').value;

唯有热爱方能抵御岁月漫长。
原文地址:https://www.cnblogs.com/syq816/p/7809562.html