上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 网页title旁边的小图片设置,图片要求格式必须是.ico,可以使用在线的转换工具把jpg和png图片转换为ico图片,工具地址:http://www.ico.la/ 在html文件中的<head></head>标签中加上: 阅读全文
posted @ 2016-11-24 11:41 Web1024 阅读(23747) 评论(0) 推荐(3) 编辑
摘要: 可以通过js来判断访问设备,代码如下: 阅读全文
posted @ 2016-11-24 11:08 Web1024 阅读(14547) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-16 17:27 Web1024 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-16 17:26 Web1024 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { 2 3 Frame f = new Frame(); 4 5 //关闭窗体 6 f.addWindowListener(new WindowAdapter() { 7 @Ove... 阅读全文
posted @ 2016-11-16 17:07 Web1024 阅读(5304) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { 2 3 Student s1 = new Student("张三", "001", 0); 4 Student s2 = new Student("李四", "002", 1); 5 Student s3 = new Student("王五", "00... 阅读全文
posted @ 2016-11-15 17:34 Web1024 阅读(3250) 评论(0) 推荐(0) 编辑
摘要: MVC三层架构: Model 模型层,数据处理和业务逻辑 View 视图层,为客户展示内容 Control 控制层,协调控制,更新模型 案例如下: 1、获得数据库连接 2、创建模型 3、创建数据库访问对象--DAO 4、控制层逻辑代码 阅读全文
posted @ 2016-11-15 11:30 Web1024 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 1 import java.sql.Connection; 2 import java.sql.DriverManager; 3 import java.sql.ResultSet; 4 import java.sql.SQLException; 5 import java.sql.Statement; 6 7 public class DBUtil { 8 9 ... 阅读全文
posted @ 2016-11-15 11:21 Web1024 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 如果数据库表User中有一列为passwd,存放的是md5加密的数据,如何更新新的数据。 update user set passwd=md5("123321") where uName="lihua"; 插入新的数据: insert into user(uName,passwd) values(" 阅读全文
posted @ 2016-11-14 15:32 Web1024 阅读(32140) 评论(0) 推荐(1) 编辑
摘要: 一、MySQL目录结构 bin目录,存储可执行文件 data目录,存储数据文件 docs,文档 include目录,存储包含的头文件 lib目录,存储库文件 share,错误消息和字符集文件 my.ini 配置文件 二、常用命令 net start mysql 启动MySQL服务 net stop 阅读全文
posted @ 2016-11-14 11:37 Web1024 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页