<%@page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.net.URLDecoder"%>
<%@ include file="/jsp/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>传感器生产管理系统-在线订单管理</title>
<script type="text/javascript" src="<%=basePath %>js/common/set.js?v=s22ss"></script>
</head>
<body>
<div class ="toolbar" style="height:50px;line-height: 50px; text-align: center;">
<span color="blue">请输入[生产批号]:</span> <input class="input" style="background: transparent" type="text" id="search" name="search" value=""/>
<a href="javascript:find();">查询</a>
</div>
<div>
<iframe id="iframe" name="iframe" height="600" width="100%" border="0" frameborder="0" src="" ></iframe>
</div>
</body>
<script>
function find() {
var _lot = $('#search').val();
var iframe = $('#iframe');
/* iframe.src = "<%=basePath%>/jsp/gx/lot.jsp?_lot="+ _lot;*/ 不跳转
iframe.attr('src', '<%=basePath%>/jsp/gx/lot.jsp?_lot='+_lot);
console.log(iframe.attr);
return true;
}
</script>
</html>
js 动态赋值不跳转原因
最新推荐文章于 2021-06-21 11:25:10 发布