javaweb画图
最近都在忙期中考试,写博客的频率有点低了,以下是一些基本代码,是王建民老师说的要建立自己的资料库,我直接建的资料库。
画图html
<!--
定义表格
宽度 行距 宽度
<tr>行
<td> 单元格
<th> 表头单元格
-->
<table border="1" cellspacing="0" width="500">
<tr>
<th>序号</th>
<th>品牌</th>
<th>名称</th>
<th>企业</th>
</tr>
<tr>
<td>1</td>
<td>三只松鼠</tdh>
<td>三只松鼠</td>
<td>三只松鼠</td>
</tr>
</table>
<hr>
<!--
表单项
-->
<form action="#" method="post">
<!--
<label for="username">用户名:</label> 点击表名即可
-->
<label for="username">用户名:</label>
<input type="text" name="username" id="username"><br>
性别:
<!--
<name="gender",防止多点
-->
性别:
<input type="radio" name="gender" value="男" id="male"> <label for="male">男</label>
<input type="radio" name="gender" value="女" id="famale"> <label for="famale">女</label>
<br>
<!--
<input type="checkbox" name="hobby" value="旅游"> 旅游
<input type="checkbox" name="hobby" value="电影"> 电影
<input type="checkbox" name="hobby" value="游戏"> 游戏
复选框
-->
爱好
<input type="checkbox" name="hobby" value="旅游"> 旅游
<input type="checkbox" name="hobby" value="电影"> 电影
<input type="checkbox" name="hobby" value="游戏"> 游戏
<!--
<select name="city">
<option value="北京">北京</option>
<option value="上海">上海</option>
<option value="邯郸">邯郸</option>
</select>
下拉列表
-->
<br>
城市:
<select name="city">
<option value="北京">北京</option>
<option value="上海">上海</option>
<option value="邯郸">邯郸</option>
</select>
<!--
列 行
下拉列表
-->
<textarea cols="20" row="5" name="other"></textarea>
<br>
<input type="submit" value="提交">
<input type="reset" value="重置"><br>
</form>
<--跳转界面-->
<input type="button" onclick="window.location.href='Jtest1.jsp';"value ="跳转">
<div align="center">
<form name="form" method="post" action="Jtest1.jsp">
<input type="submit" value="跳转1">
</form>
<br>
<form name="form" method="post" action="Jtest2.jsp">
<input type="submit" value="跳转2">
</form>
<br>
<form name="form" method="post" action="Jtest4.jsp">
<input type="submit" value="跳转4">
</form>
</div>
后台操作
<form action="back.jsp" method="post"></form>
//乱码解决
request.setCharacterEncoding("utf-8");
//跳传
<form name="form" method="post" action="Jtest2.jsp">
<input type="submit" value="增加">
</form>
//输入
<input type="text" name="name" />
最新文章
- java向mysql数据库插入数据显示乱码的问题
- 【C语言】C语言运算符
- curl毫秒超时使用的坑
- Android Error Message
- Swift 中范围和区间如何使用?
- JVM的启动流程
- 方法字段[C# 基础知识系列]专题二:委托的本质论
- Java之可变参数
- hihoCoder #1174:拓扑排序&;#183;一
- 2016腾讯";创益24小时";互联网公益创新大赛总结
- web app 基础界面框架搭建
- 使用Three.js渲染Sketchup导出的dae
- ###服务(Service)
- jQuery 操作属性
- SSM整合开发
- 我是如何将网站全站启用Https的?-记录博客安装配置SSL证书全过程
- 使用JBolt新建Maven版工程步骤
- python 装饰器(1)
- Linux之整理bash命令类型
- 2018,ANG发展峰会惊喜来袭