在index.jsp中有:
<img src="1.jpg" width="179" height="100" alt="" onclick="window.location.href('1.jsp?iiiddd=3333')" />
点击图片,跳转到1.jsp并且把值iiiddd=3333传给1.jsp,现在我想在1.jsp中的ccc.js里用iiiddd的值,怎么办?
1.jsp内容如下:
<script type="text/javascript" src="ccc.js"></script>
ccc.js内容如下:
var id;
id = iiiddd;//想在这里用index.jsp里的iiiddd值
求给为帮忙