<script type="text/javascript">
var imgList_m=[];
var lastNum = 0;
<c:forEach items="${mid_imageList}" var="pic" varStatus="status">
<c:set value="${empty pic ? 'notfound300.gif' : pic}" var="midPic"/>
imgList_m[${status.index}]="${frontPath}/upload/${midPic}";
</c:forEach>
jQuery(document).ready(function(){
for(var l in imgList_m){
eval("var img_m"+l+"=new Image();");
eval("img_m"+l+".src=imgList_m["+l+"];");
}
});
</script>如果我想在body中取得imgList_m[lastNum]的值怎么办?
var imgList_m=[];
var lastNum = 0;
<c:forEach items="${mid_imageList}" var="pic" varStatus="status">
<c:set value="${empty pic ? 'notfound300.gif' : pic}" var="midPic"/>
imgList_m[${status.index}]="${frontPath}/upload/${midPic}";
</c:forEach>
jQuery(document).ready(function(){
for(var l in imgList_m){
eval("var img_m"+l+"=new Image();");
eval("img_m"+l+".src=imgList_m["+l+"];");
}
});
</script>如果我想在body中取得imgList_m[lastNum]的值怎么办?
解决方案 »
- 如何用myEclipse打开测试工具Apache Jmeter的开源代码?
- loadrunner测试webservice空数据问题
- 我即将是java程序员队伍里的一员
- 100分解决异常错误:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling s
- 如何写一个修改密码的程序啊??
- 关于service层与dao层的一个疑问?
- 远程jsp访问本地数据库
- 查询变慢,如何优化
- 在用installAnywhere 把JAVA应用程序编译成可执行文件
- weblogic7 + sybase 的问题
- 在Hibernate中我有一个实体 有个成员属性 想通过数据库来生成 就像 Hibernate中的id 一样 不知道如何在数据库见表 和写配置文件 希望大家指
- 大家帮忙想个sql语句 快疯了
在html中我要是想打印出imgList_m[lastNum]的值怎么办?