最近都在忙期中考试,写博客的频率有点低了,以下是一些基本代码,是王建民老师说的要建立自己的资料库,我直接建的资料库。

画图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" />

最新文章

  1. java向mysql数据库插入数据显示乱码的问题
  2. 【C语言】C语言运算符
  3. curl毫秒超时使用的坑
  4. Android Error Message
  5. Swift 中范围和区间如何使用?
  6. JVM的启动流程
  7. 方法字段[C# 基础知识系列]专题二:委托的本质论
  8. Java之可变参数
  9. hihoCoder #1174:拓扑排序&amp;#183;一
  10. 2016腾讯&quot;创益24小时&quot;互联网公益创新大赛总结
  11. web app 基础界面框架搭建
  12. 使用Three.js渲染Sketchup导出的dae
  13. ###服务(Service)
  14. jQuery 操作属性
  15. SSM整合开发
  16. 我是如何将网站全站启用Https的?-记录博客安装配置SSL证书全过程
  17. 使用JBolt新建Maven版工程步骤
  18. python 装饰器(1)
  19. Linux之整理bash命令类型
  20. 2018,ANG发展峰会惊喜来袭

热门文章

  1. codeforces补题计划
  2. 基于sklearn的集成学习实战
  3. 【Shell案例】【打印指定行用sed、for循环、head和tail配合使用】4、输出第5行的内容
  4. Linux和shell面试内容
  5. 【实时数仓】Day00:数据流程、课程内容、框架结构、知识点总结
  6. SQL注入漏洞原理与利用
  7. Django路由层之路由分发 名称空间 虚拟环境 视图层之三板斧 JsonRsponse对象 request对象获取文件 FBV与CBV CBV源码剖析 模板层
  8. Clickhouse表引擎探究-ReplacingMergeTree
  9. JavaScript:立即执行函数
  10. MongoDB 索引原理与索引优化