代码编辑器--5.21

博客主要介绍了两项信息技术操作。一是在category.jsp中添加关闭按钮,设计按钮样式并修改按钮class为btn2 formButton;二是创建dic表,对CodeBuilder.java进行修改,最后运行指定的URL。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、将category.jsp中改一下

<div class="formInput">
    						<span>所属父类:</span> 
    						<select name = "parentId" id = "parentId">
    							<option value="0">顶级分类 </option>
    							<c:forEach items="${catList }" var="row">
    								<option value="${row.id }">${row.catName } </option>
    							</c:forEach>
    						</select>
    						<!-- <input type="text" name="parentId" id="parentId" /> -->
    					</div>	

再添一个关闭按钮

<input class="formButton" type="button" value="关闭" onClick="closeDiv()" />
					<script type="text/javascript">
						function closeDiv(){
							$(".box").hide();
						}
					</script>

设计一下按钮的样式,同时将按钮的class改:btn2 formButton,两个都要改

<style type="text/css">
						.btn2{
							width:40% !important;
							margin-left:10px;
						}
					</style>

在这里插入图片描述

3、创建一个dic表

create table dic(
	id int(11) not null auto_increment comment 'ID',
	dic_name VARCHAR(100) DEFAULT null comment '字典名称',
	dic_code VARCHAR(100) DEFAULT null comment '字典编码,不能重复',
	item_code VARCHAR(100) DEFAULT null comment '字典项值,同一个字典编码中值不重复',
	item_desc VARCHAR(100) DEFAULT null comment '字典项描述,同一个字典编码中值不重复',
	dic_remark VARCHAR(100) DEFAULT null comment '备注',
	PRIMARY key(id)
	
)DEFAULT CHARSET=utf8;

将CodeBuilder.java中进行修改

String modelClass = "DicCondition";
		String model = "Dic";//Menu Controller   Menu Service
		String modelName = "dic";

运行 http:// localhost:8080/shop/dic/list.do

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值