标签:html UNC ict for return href app instance rect
<div class="control-group"> <label class="control-label">评分:</label> <div class="controls"> <form:select id="type" path="score" htmlEscape="false" style="width:270px;" class="required"> <form:option value="">----select----</form:option> <form:options items="${scoreList}" itemLabel="label" itemValue="id" /> </form:select> <span class="help-inline"><font color="red">*</font> </span> </div> </div>
<div class="control-group"> <label class="control-label">评分准则:</label> <div class="controls"> <form:input id="subType" path="scoreCriteria" htmlEscape="false" style="width:260px;" maxlength="125" class="required"/> <span class="help-inline"><font color="red">*</font> </span> </div> </div>
<script type="text/javascript"> $("#type").on("change",function(){ $.ajax({ url:"${ctx}/oc/devopsscore/selectSec",//根据传的id值请求子类型的地址。, data:"id="+this.value, type:"post", dataType:"json", success:function(result){ $("#subType").val(result["description"]); } }) }); </script>
$("#type").on("change",function(){ $.ajax({ url:"${ctx}/delivery/platform/selectSub",//根据传的type值请求子类型的地址。, data:"type="+this.value, type:"post", dataType:"json", success:function(result){ $("#subType").html(""); var option1 = $("<option></option>").val("").text("--select--"); $("#subType").append(option1); for(var i=0;i<result.length;i++) { var option = $("<option></option>").val(result[i]).text(result[i]); $("#subType").append(option); } } }) });
<script type="text/javascript"> $("#type").on("change",function(){ $.ajax({ url:"${ctx}/oc/devopsscore/selectSec",//根据传的type值请求子类型的地址。, data:"value="+this.value, type:"post", dataType:"json", success:function(result){ $("#subType").val(result["description"]); } }) }); </script>
@RequestMapping(value = "selectSec") @ResponseBody public String selectSec(OcDict ocDict, RedirectAttributes redirectAttributes) { System.err.println("ocDict"+JsonMapper.toJsonString(ocDict)); ocDict=ocDictService.get(ocDict); return JsonMapper.toJsonString(ocDict); }
JavaType javaType = JsonMapper.getInstance().createCollectionType(ArrayList.class, DpmProblemReviewInfo.class); List<DpmProblemReviewInfo> objectListData = JsonMapper.getInstance().fromJson(changeData,javaType);
标签:html UNC ict for return href app instance rect
原文地址:https://www.cnblogs.com/jiajialeps/p/10163122.html