摘要: ###JDBC 的 Statement 操作数据库 和 PreparedStatement 解决 sql 注入的练习 import org.junit.Test; import java.sql.*; import java.util.Scanner; public class t3 { @Test 阅读全文
posted @ 2020-08-05 21:22 ping4 阅读(298) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int i,j; for(i=1;i<=9;i++){ for (j=1;j<=i;j++){ System.out.print(i+"*"+j+"="+i*j+"\t"); } System.out.println( 阅读全文
posted @ 2020-08-04 20:14 ping4 阅读(358) 评论(0) 推荐(0)
摘要: ###练习1 CREATE TABLE product( pid INT PRIMARY KEY,#主键ID pname VARCHAR(20),#商品名称 price DOUBLE,#商品价格 category_name VARCHAR(32)#商品分类名称 ); INSERT INTO prod 阅读全文
posted @ 2020-08-03 19:32 ping4 阅读(1080) 评论(0) 推荐(0)
摘要: ###alter 在数据库中 修改编码 alter database test(库名) character set utf8(编码); 修改表名 alter table student(表名) rename to stu(新表名); 修改列名 alter table stu(表名) change s 阅读全文
posted @ 2020-08-03 12:24 ping4 阅读(174) 评论(0) 推荐(0)
摘要: ###jQuery 显示与隐藏 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script src="js/jquery-1.8.3.js" type="text/javascript" charset=" 阅读全文
posted @ 2020-07-31 22:10 ping4 阅读(165) 评论(0) 推荐(0)
摘要: ###今日复习有些模糊的知识点 ####1 dom bom区别 DOM 是为了操作文档出现的 API,document 是其的一个对象(节点标签) BOM 是为了操作浏览器出现的 API,window 是其的一个对象(窗口事件) ####2 css引入优先级 行内,内部,外部三种 理论上:行内>内嵌 阅读全文
posted @ 2020-07-31 20:04 ping4 阅读(120) 评论(0) 推荐(0)
摘要: ###js 时间的显示(循环刷新获取时间) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div id="a"> </div> <input type="button" onc 阅读全文
posted @ 2020-07-30 12:12 ping4 阅读(340) 评论(0) 推荐(0)
摘要: ####js 用户填写非空验证 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form action="index.html" method="get" onsubmit="r 阅读全文
posted @ 2020-07-30 12:08 ping4 阅读(151) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>阿里巴巴用户注册</title> <style> h1{ margin: 0; padding: 0; height: 40px; } /*降低第一张图片的高度*/ </style 阅读全文
posted @ 2020-07-27 20:00 ping4 阅读(977) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.Objec 阅读全文
posted @ 2020-07-25 15:44 ping4 阅读(672) 评论(0) 推荐(0)