2015-11-19
展开全部
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script class="jquery library" src="/js/sandbox/jquery/jquery-1.8.2.min.js" type="text/javascript"></script>
<title>RunJS 演示代码</title>
<script>
$(function() {
var result = [{
prodName: "dddf"
}];
for (var i = 0; i < result.length; i++) {
var ri = result[i];
var li = $("<li>" + ri.prodName + "</li>");
li.click(function() {
window.open("${ctx}/acm/purchase/cstegery/asvMenux/produInfo?prodName='" + ri.prodName + "')");
});
$("#abc").append(li);
}
});
</script>
</head>
<body>
<div id="abc"></div>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询