【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
我的jsp是这样写的:
<%@page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<fmt:setBundle basename="bundles.project-resources"/>
<html>
<head>
<title>Edit <fmt:message key="project.title"/></title>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(function(){
$("#projectArtical_attribute_id").change(function (){
var pro = $("#projectArtical_attribute_id").val();
if(pro=="1"){
$("#projectArtical_level_id").attr("disabled",true);
$("#projectArtical_source_id").attr("disabled",false);
$("#projectArtical_extName").attr("disabled",false);
}
if(pro=="2"){
$("#projectArtical_level_id").attr("disabled",false);
$("#projectArtical_source_id").attr("disabled",true);
$("#projectArtical_extName").attr("disabled",false);
}
if(pro=="3"){
$("#projectArtical_level_id").attr("disabled",true);
$("#projectArtical_source_id").attr("disabled",true);
$("#projectArtical_extName").attr("disabled",true);
}
});
$("#newSource").click(function(){
$('#edit').window('open');
$('#ff').show();
$('#ff').appendTo('#ee');
});
})
//--------------------------------查看窗体-------------------------------------
function close1(){
$('#edit').window('close');
}
</script>
</head>
<body>
<div id="contentarea">
<div id="lb"><div id="rb"><div id="bb"><div id="blc">
<div id="brc"><div id="tb"><div id="tlc"><div id="trc">
<div id="content">
<form:form action="${pageContext.request.contextPath}/mysaveProject" method="POST" modelAttribute="project">
<legend><fmt:message key="project.information"/></legend>
<table cellpadding="0" cellspacing="0" id="viewTable">
<tbody>
<tr>
<td class="label" valign="top">
<fmt:message key="project.projectname.title"/>:
</td>
<td>
<form:input id="project_projectName" path="projectName" cssStyle="width:300px;" value="a"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "project_projectName",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="project.projectname.help"/>"}})); </script>
</td>
<td class="label" valign="top">
<fmt:message key="project.setupdate.title"/>:
</td>
<td>
<input id="project_createDate" name="createDate" type="text" value="<fmt:formatDate value="${project.createDate.time}" pattern="MM/dd/yyyy h:mm a"/>" style="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "project_createDate",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="navigation.dateTime.title"/>"}})); </script>
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectartical.attribute"/>:
</td>
<td>
<!-- 下拉框选择 -->
<form:select path="projectArtical.CProjectAttribute.name" id="projectArtical_attribute_id" cssStyle="width:300px;" items="${attributes}"/>
<!-- 下拉框选择 -->
</td>
<td class="label" valign="top">
<fmt:message key="projectartical.type.title"/>:
</td>
<td>
<!-- 下拉框选择 -->
<form:select path="projectArtical.CActivityType.id" id="projectArtical_type_id" cssStyle="width:300px;" items="${types}"/>
<!-- 下拉框选择 -->
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectschedule.begindate.title"/>:
</td>
<td>
<input id="projectSchedule_beginDate" name="beginDate" type="text" value="<fmt:formatDate value="${projectSchedule.beginDate}" pattern="MM/dd/yyyy"/>" style="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectSchedule_beginDate",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectschedule.begindate.help"/>"}})); </script>
</td>
<td class="label" valign="top">
<fmt:message key="projectschedule.planenddate.title"/>:
</td>
<td>
<input id="projectSchedule_planEndDate" name="planEndDate" type="text" value="<fmt:formatDate value="${projectSchedule.planEndDate}" pattern="MM/dd/yyyy"/>" style="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectSchedule_planEndDate",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectschedule.planenddate.help"/>"}})); </script>
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectartical.level.title"/>:
</td>
<td>
<!-- 下拉框选择 -->
<form:select path="projectArtical.CProjectLevel.id" id="projectArtical_level_id" cssStyle="width:300px;" items="${levels}"/>
<!-- 下拉框选择 -->
</td>
<td class="label" valign="top">
<fmt:message key="projectartical.projectbudget.title"/>:
</td>
<td>
<form:input id="projectArtical_projectBudget" path="projectArtical.projectBudget" cssStyle="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectArtical_projectBudget",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectartical.projectbudget.help"/>"}})); </script>
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectartical.registdate.title"/>:
</td>
<td>
<input id="projectArtical_registDate" name="registDate" type="text" value="<fmt:formatDate value="${projectArtical.registDate}" pattern="MM/dd/yyyy"/>" style="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectArtical_registDate",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectartical.registdate.help"/>"}})); </script>
</td>
<td class="label" valign="top">
<fmt:message key="projectartical.extname.title"/>:
</td>
<td>
<form:input id="projectArtical_extName" path="projectArtical.extName" cssStyle="width:300px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectArtical_extName",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectartical.extname.help"/>"}})); </script>
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectartical.source.title"/>:
</td>
<td>
<!-- 下拉框选择 -->
<form:select path="projectArtical.source.name" id="projectArtical_source_id" cssStyle="width:280px;" items="${sources}"/>
<!-- 下拉框选择 -->
<a title="<fmt:message key="source.title" />" id="newSource"><img src="images/icons/new.gif" /></a>
</td>
<td class="label" valign="top">
<fmt:message key="userbycreater.title"/>:
</td>
<td>
<form:input path="userByCreater.id" id="userByCreater" cssStyle=" width:300px;" value="1"/>
</td>
</tr>
</tbody>
</table>
<legend><fmt:message key="project.otherinformation"/></legend>
<table cellpadding="0" cellspacing="0" id="viewTable">
<tbody>
<tr>
<td class="label" valign="top">
<fmt:message key="project.specification.title"/>:
</td>
<td colspan="3">
<form:textarea id="project_specification" path="specification" cssStyle="width:840px;"/>
</td>
</tr>
<tr>
<td class="label" valign="top">
<fmt:message key="projectartical.projectrequirement.title"/>:
</td>
<td colspan="3">
<form:input id="projectartical_projectrequirement" path="projectArtical.projectRequirement" type="file" cssStyle="width:360px;"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "projectartical_projectrequirement",widgetType : "dijit.form.ValidationTextBox",widgetAttrs : {promptMessage: "<fmt:message key="projectartical_projectrequirement.help"/>"}})); </script>
<a href="#">开始上传</a>
</td>
</tr>
</tbody>
</table>
<span class="inputbutton"><input class="savebutton" id="save" type="submit" value="<fmt:message key="navigation.save"/>"/></span>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'save', event:'onclick'}));</script>
</form:form>
<div class="clear"> </div>
</div>
</div></div></div></div>
</div></div></div></div>
</div>
<div id="edit" class="easyui-window" title="查看指标" style="padding: 10px;width: 700;height: 490;"
iconCls="icon-edit" closed="true" maximizable="false" minimizable="false" collapsible="false">
<div id="ee"></div>
<form id="ff" method="post">
<div>
<font size="4"><b>功能指标:</b></font><textarea class="easyui-validatebox" style="width:670;height:175" type="text" id="FunctionIndex" name="FunctionIndex" required="true" disabled></textarea>
</div>
<div>
<font size="4"><b>性能指标:</b></font><textarea class="easyui-validatebox" style="width:670;height:200" type="text" id="PerformanceIndex" name="PerformanceIndex" required="true"disabled/></textarea>
</div>
</form>
</div>
</body>
</html>
为什么我点击id="newSource"的新建按钮时没反应啊?如果我把 $('#edit').window('open');
$('#ff').show();
$('#ff').appendTo('#ee');换成alert("你好");时点击新建按钮时弹出框。怎么解决啊?