- 博客(10)
- 收藏
- 关注
转载 MySQL 分页查询
select * from table limit 5; --返回前5行 select * from table limit 0,5; --返回前5行 select * from table limit 5,10; --返回6-15行 当一个查询语句偏移量offset很大的时候,如select * from table limit 10000,10,最好不要直接使用limit,而是先获取...
2017-06-17 00:12:00
59
转载 Docker 命令
开机启动 docker :chkconfig docker on 搜索镜像:docker search 镜像名( https://hub.docker.com/explore ) 获取镜像:docker pull ubuntu:14.04 查看本机镜像:docker images 运行:docker run -it ubuntu:14.04 /bin/bash -i:允许你对容器内的标...
2017-05-12 00:11:00
60
转载 MySQL 内连接:INNER JOIN
SELECT a.role_id,a.account_name FROM account AS a INNER JOIN role AS r ON a.role_id = r.role_id; 转载于:https://www.cnblogs.com/17003WS/p/6804879.html
2017-05-03 23:59:00
87
转载 JavaScript 改变 HTML 内容 属性 样式
改变HTML内容: <p id="test">Hello World!</p> document.getElementById("test").innerHTML="<h1>New text!</h1>"; 改变HTML属性: <img id="test" src="a.gif" /> document.getElementBy...
2017-04-30 16:35:00
137
转载 jQuery 设置、返回 HTML 内容和属性
内容: text() - 设置或返回所选元素的文本内容: $('#test').text(); $('#test').text("Hello world!"); html() - 设置或返回所选元素的内容(包括 HTML 标记): $('test').html(); $('test').html("<b>Hello world!<...
2017-04-30 16:30:00
450
转载 Tomcat 远程部署 Maven项目
1.软件版本:apache-tomcat-8.0.37 apache-maven-3.3.9 2.配置 apache-tomcat-8.0.37\conf\tomcat-users.xml 文件 <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/...
2017-02-20 00:15:00
66
转载 Java 创建线程
继承 Thread 方式: public class MyThread extends Thread { public void run() { System.out.println("MyThread......"); } public static void main(String[] args) { MyThread my...
2017-02-14 23:44:00
78
转载 Docker 笔记
0.参考资料(感谢大家的分享): https://docs.docker.com https://yeasy.gitbooks.io/docker_practice/content https://my.oschina.net/huangyong/blog/372491 1.定义 Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到...
2016-12-18 13:42:00
50
转载 JSON 与 Java 转化
使用的 JSON 包版本: <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib --> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</a...
2016-12-04 22:48:00
78
转载 Java 集合总结
接口 Iterator : 对 collection 进行迭代的迭代器。 private static void iteratorTest() { Collection<String> coll = new ArrayList<String>(); coll.add("king "); coll.add("of "); coll....
2016-11-30 23:23:00
61
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人