js中我定义了一个变量,获取页面控件的值,然后在js中某个方法中作为参数提交,怎样实现? 10
<scriptlanguage='javascript'>varcompany_id_str=document.getElementById("company_id")....
<script language='javascript'>
var company_id_str = document.getElementById("company_id").value;
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=XXXXXXX","search");
“XXXXX”位置该换成什么,才能实现变量company_id_str作为参数,传递给company_id,请大神帮帮忙,急急急!!!! 展开
var company_id_str = document.getElementById("company_id").value;
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=XXXXXXX","search");
“XXXXX”位置该换成什么,才能实现变量company_id_str作为参数,传递给company_id,请大神帮帮忙,急急急!!!! 展开
2个回答
展开全部
字符串拼接就好:
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=“+company_id_str ,"search");
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=“+company_id_str ,"search");
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<script language='javascript'>
var company_id_str = document.getElementById("company_id").value;
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=" + company_id_str, "search");
var company_id_str = document.getElementById("company_id").value;
openSearch("<%=request.getContextPath()%>/cs/action/SocialfeeAction.action?action=singlequery&company_id=" + company_id_str, "search");
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询