学习了一下linkedList的源码,做下记录.  java底层实现的是双向环链表,程序定义了一个header,来保存头结点,header.next指向最后一个节点(最后插入到),header.prevoious指向第一个节点(最先插入的)。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2gAAACuCAIAAADMLbleAAAgAElEQVR4nO2dX4hk2X3fL+jBkCfrQSDQYoHsKCiky47jIoMfvJadgCM7q6acgSyWXC9ePTSB7VAQyaytwoKSw1ZoUtsD/RCPCGRxUx1BtdmQpGnjYdig1oxqSSdjz8atBY8zq4V1Unjx7PbK3sDk4f47f37n3HNv3aq6VfVpPg8zt+49/+6pe7/1+3NOdDGbxrz33nvZv+tkejiMbvYz2ofn8pnHR+pp0d6rU6sE57Vz4q66sUx711H0NIqetnuX5a6dPG5HT6OM1uO6Ops1KWU2Xma/AAAAYOFE2b8WJRxn04vZ9LRbKBynF7Pp+WDPVm/5tdHNowpaJAyx6qUy7jzVhZdHfl1159NneV31CUerF0nDltmv0ox2I9/fzmCygpkAAADQVJYkHHNZ5rca5ubJZVoc3VUvnctBK1NO1x7VMqdlLrcO1i0cFYumqvwW2K+8L52rSm0+GbSiKIravRP1+LiDcAQAADBYB+G4HJohHFWH7wJNbksXjgvs19zC8WLa27GF42x6MmghHAEAAFQQjg2oWmsGwrFyXwKF42g36hzoJYjC0byq4AQAAIDNRxCOeqZI/3R29mpbSBxRQw/T4+qZ2sm6cFSTUfqnaoMs9SbVIp4fpvk85zuFo5E6I2hfJT4yPmFvqJzj/9RqYbHAUgMBM+Wn+oKTa7VsFV1UWcLRuFz1JuvVCa0y2nNdVTiK/Yoxmve03bpu9y5no5kUPfm0O3JMgMl+O4qiKDJOsIXjuGPZGh3XAgAAbBOyxVHXOrGQyvVTnqEy7gsKTDqoF9g/nWkaLi9QVG9iLYqmjC9P/+vUjgXnS1VnzU5amLUkV36ZVs4U8PFRfoL/U4lAy5yY3aJce91uxWGCueRSowZFi2NSpioxU2XWHV0oRSmyMpNuggCtYnEU+pWZMLOGjWZqd8Isjg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Hs77ZaW15KJMD3fZWcwcfmXFWuftgD4otzH/p1j0k+xQQIAQKNYVowjAJTkoItwBACAZoFwBGgm+g43AAAADWABwrHC0jYAoKGEXQIAADSGeoXjsRlyh3wEKM/JoIVqBACABrIAiyMAAAAAbCIIRwAAAAAIAuEIAAAAAEEgHAEAAAAgCIQjAAAAAASBcAQAAACAIBCOAAAAABAEwhEAAAAAgkA4AgAAAEAQCEcAAAAACALhCAAAAABBIBwBAAAAIAiEIwAAAAAEgXAEAAAAgCAQjgAAAAAQBMIRAAAAAIJAOAIAAABAEAhHAAAAAAgC4QgAAAAAQSAcAQAAACAIhCMAAAAABIFwBAAAAIAgEI4AAAAAEATCEQAAAACCQDgCAAAAQBAIRwAAAAAIAuEIAAAAAEEgHAEAAAAgCIQjAAAAAASxBOH43f3unf27q+8qAAAAAMzD4oXj3def7b5+O/3vH4zvPvub3/kD67j/IwAAAABYOQsXjrdHd54dfTc/8uZ3nu/e/d03reP+jwAAAABg1UT/650//+PZn14sSjhKfuo3v7M//s6+KA09HwEAAADASon+x9X/fuNP/uzB7E8XIhzvvp54n2exQfHOszaj7/o+WvUAAQAAAEBM9H8+/H/fe/PP//jtR4sQjrdHd54f3zOPY3EEAAAAWEP+P40yl1koMADWAAAAAElFTkSuQmCC" alt="" />

链表中的节点是通过Entry 来充当节点的:

  Entry是一个 private static 约束的内部类

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr4AAAEYCAIAAAA1SGJMAAAgAElEQVR4nO3dvW7iShyGcd8QiIb7QEjU9FtFSkGZiioSEtrCN3CkFWmyFdLRuQAal+m2SxmJIhXlnsJjez7+Y8+AjQ081q/YJcZ2xoR5PR7PJIdjBgAAECjp/QgAAMANIToAAIAIRAcAABCB6AAAACIQHQAAQASiA3rzcTtL72UFAMNBdEBv+s4DEUvvZQUAw0F0QG/6zgMRS+9lBQDDQXRAb/rOAxFL72UFAMMxgOiQ/XxNFi/J4mX687/eD2YgOi+TX2m+feXHP1kPv2bfeSBi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O2M67BZJkky3/T9ywAAgK61OCTUdpZw5wIAgDvXTnR4W48JDQAAPIK2+joks13/vwwAAOhaC9GBJgcAAB4HD2cCAIAIRAcAABCB6AAAACIQHQAAQISLo8NunjDpNgAAD+OC6JCHhiRJltvefw0AAHAdLY4mCQAA7h/RAQAARCA6AACACEQHAAAQgegAAAAiEB0AAECENh7OZFAHAAAexsWtDtnziPQAAMDDYCBqAAAQgegAAAAiEB0AAEAEogMAAIjQxsOZuznRAQCAB9HOuA6bZZIk803fvwwAAOhai0NCbWcJdy4AALhz7USHt/WY0AAAwCNoq69DMtv1/8sAAICutRAdaHIAAOBx8HAmAACIQHQAAAARiA4AACAC0QEAAES4ODrs5gmTbgMA8DAuiA55aEiSZLnt/dcAAADX0eJokgAA4P4RHQAAQASiAwAAiEB0AAAAEYgOAAAgAtEBAABEIDoAAIAIRAcAABCB6AAAACIQHQAAQASiAwAAiEB0AAAAEf4H7WLcsGKvkvMAAAAASUVORK5CYII=" alt="" />

初始化的时候造了个环,以后的所有操作就在环中进行。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAggAAABrCAIAAACdYe3pAAAKbUlEQVR4nO3du2rj2h7H8fVCceUEUuUVjGGKXQSTJrUhuznVgQ3huHLQA0w1EHAIE6ZIPScMbGeDwWWKaadIM40fwOxCt/VfF91lWcrXfIpElpauXj9pLclW69+b9nwOvl8Er63OAgDQLNVm6a/z2ff5S/crCQAors1gePlxMfvxues1BACU0uoVAwCgf9T7bg8AQIJgAAAIBAMAQCAYAABC18Gw/RqoT/9NnH19c4/5zxd9NPXn89YqwTttV37+daai19nda4OlKXX52O1KXd/v9u+P10qp8eJnpbU4/2tbbQEAtK7rYNjt33f79VVuMOzfd/u3xZ92MKTTqk9fqlWX27uxkq+rZ/9o1/elCn+8bigYQlHFGgVDq0vuK0fMIlyegrV8qZEBdOYogiGt8bPP+tPLi+avGF4X5yq79qxYvT5fNhkM0XLqVwxNL7lngR2pELm/Kla4vwQAR6X/wdCUsNp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9n+dHXZx9CH7V+w89kqJ3enhP96qtoCG8pcsLyOX7ureTVt+lacQexxHNbx3JVk3eRn3H0obmIz7o2z72E320/N2+OchbsXb7NObgA3P/B2z2SxtQg/POaHTVk3wLRxr94gtr9ZiK9j3zpRzZl75rT5c3FM6LpFR5mdt8aR0HAt2cs9bhaLwzpsMNj9bLJvyvcUkvu5ofATlZSQjKOXeXqzdNyB7ilcLp4+U1ExydFObp9KroV8RMvz9JAY2FRNMYztn8xiNp24Rs4oJ3vV1vo6Gify3g0lH09zdA8EE+39ySqde3TknI5E92yzHQy93ePJW23erwUvfo8BPeTqfMbwLGcEQzcIBvQQwfAhBBOefO4IwYAe8j3/geF4mp9yudAZggH9IluraYMeqIfbEXu2QwQDAEAoHQz/9786XxkAQH1VgqHUcABAvxAMAACBYAAACFWCwfGYIsEAAENR9YrB+pY3ggEAhqF6U5Lxi30EAwAMA8EAABAIBgCAQDAAAIQat6vKn5oiGABgGGo9x6D/yB/BAADDUP8Bt+hHKAkGABiGWsHwcDtKWpMIBgAYhpp9DOkPfBMMADAM1YNBv1xYEwwAMBTcrgoAEAgGAIBAMAAABIIBACBUDYbVVPG12wAwRDV+qGcWGMM7XxkAQH38tCcAQKgSDL5X5ysDAKivdDAAAIaNYAAACAQDAEAgGAAAAsEAABAIBgCAQDAAAASCAQAgEAwAAIFgAAAIBAMAQCAYAAACwQAAEAgGAIBAMAAABIIBACAQDAAAgWAAAAgEAwBAIBgAAALBAAAQCAYAgEAwAAAEggEAIBAMAACBYAAACAQDAEAgGAAAQiPB8DqffZ+/dL8yAID6mgiGlx8Xsx+f43+/rV4u/vP3N2t49lsAgCPRQDB8Dr5fBK/pkLe//5i9/O/NGp79FgDgOPwL8euiDBq8CSEAAAAASUVORK5CYII=" alt="" />

在进行插入或者删除时需要查找的时候,由于是双向链表,那么由哪头开始进行查找呢?看代码

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA80AAAFqCAIAAACvUi/dAAAgAElEQVR4nO3d36sj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8AAABOXXs5Wx/aWPnqcipMqCfNFiK+t5gbO0nk8hTaxc7lFyAc3zSZoPEtyT5pi3YRtePJIO8kWY4DCt4AAAA90E7OVhaCsS3+oqxTk+XmjLR2jDintb42jby0TXjvQfkFaAMx5VlQLNdTkNapkdq105wdUN4GAAA4bZ1dd73L5hE5GwAA4MSRsw9vMWI6bQAAgFNHzj6w9UVIMRsAAOD0kbMPajUbErIBAAD6gJwNAAAA+EfOBgAAAPwjZwMAAAD+kbMBAAAA/8jZAAAAgH975OxsaUNpvUMAAAAAHurZ8WRA1AYAAABkHvpG5lEQsMAhAAAAICBnAwAAAP6RswEAAAD/yNkAAACAfz7m9VuOydkAAACAyM/82fMoCILxvO2bAQAAAI6Ex3VqFqOABhIAAAAg3vjK2avZkIQNAAAA5Hz1ZwejZfs3AwAAABwJDzmbYjYAAACgYF4/AAAAwD9yNgAAAOAfORsAAADwj5wNAAAA+Ld3zl6OgyAIwsmq7TsBAAAAjsceOTtJ2EEQRIvWbwMAAAA4Kh7XgwQAAACQImcDAAAA/pGzAQAAAP/I2QAAAIB/5GwAAADAP3I2AAAA4B85GwAAAPCPnA0AAAD4R84GAAAA/CNnAwAAAP6RswEAAAD/yNkAAACAf+RsAAAAwD9yNgAAAOAfORsAAADwj5wNAAAA+EfOBgAAAPwjZwMAAAD+kbMBAAAA//4F6Xkbgy8YZRMAAAAASUVORK5CYII=" alt="" />

可见。如果位置小于size的一半就从尾(最后插入的地方)开始查找,大于一半从头(最先插入的地方)开始查找。

添加、删除、查找没什么可说的,就是引用的替换。

LinkedList 可以通过迭代器进行迭代,主要是Collection继承了Iterable

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAp8AAABcCAIAAACnaUlsAAAOgElEQVR4nO2dPW/jOhaG/YccpEl9/4IRIMVW7lMZmGKwldMEWwQwEKRwdbsLGE4zs80AwRQXgwus7wYuZ7BN0qZz2pTZQh/8OqQoWbIU+hGeIpEo6lCi+JKHh/Jos9s24X//+cf0r9+bnQs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e8qB8FdvN08vqoMxQQOhXTFlKVOQdxFdDG++lqlcNf1aRP54oJ4MwfRdxK3Iq7CXWGt0POvdAAAgGhaUveWfxTO/bKKT1DdL9iY52oyY30HpjRJCObyXu55Uu8bc3EF0bR8spKN3+xfCisub/Vs7JG6CNn+RTjYzZ4pN8XYCQYcP/wSJtdXz5unl/Hq1f+xHQAAqEE76r73j8KJiJF0/fJrdteBJXz/FQAAWqUVdd/rR+ECBD/4eiByG7IimJFfrYG6AwBAq7Sh7s1/FK4S3bPdj/JpsWPPs1U3juKo1W4AAACxtKDuzb8+G0Xgh08OQtRStPZKh8YDAMDedPD77gAAANArqDsAAEBqoO4AAACpgboDAACkBuoOAACQGqg7AABAaqDuAAAAqYG6AwAApAbqDgAAkBqoOwAAQGqg7gAAAKmBugMAAKQG6g4AAJAa/wfteW9TK8JjVgAAAABJRU5ErkJggg==" alt="" />

在LinkedList中添加了一个内部类ListItr实现了linkedList的迭代输出。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnYAAAAuCAIAAAAqdMMdAAAJpUlEQVR4nO2dP0/zOhTG/YVaden3QEiduzMhMXTs1KkSEmLIF3glVBaYkBAfgKXDHZguG+MrMbBcRu4Qxzm2j/8kseu0PNFvaeLYJ86pn9g+ccTr5x4AAAAAyRHFLQAAAABOEkgsAAAAkAVILAAAAJAFSCwAAACQBUgsAAAAkAVILAAAAJAFSCwAAACQBUgsAAAAkAVILAAAAJAFSCwAAACQBUgsAAAAkAVILAAAAJAFSCwAAACQBUgsAAAAkAVILAAAAJAFSOwp8HYSW/FqBACAtEBiT4HS4phmK16NAACQFkjsKVBaHNNsxasRAADSAok9BUqLY5qteDUCAEBaRiCx+9utWKzFYj2/fSluTGfuqtp4ycWffQEzuknZ0+pbiB8hfmar9zxi2W8bh2+M4oYCMJiHy7kQQggxvYQPl6O8xD4u2xat2pWvkR68bC4KS2y1+KlVU+erYpTsYxFIELt1KbSfxJbyjeI3tDD7q4nQt+WNO9n5dapSemd1T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mlm/kY5XdZfE43m11BC4Z6i5FuodSQmJHQ7JebEUjejyLJ7g6ELaG0QR259KIEFneaXu4Vs8wzHjNPxD6YZfYZGVfgq2pvIX72+1y7Vybwn9Ux7Uiv8ls9cGGNT2tvhcLc70IYwVjY6Z2tnoPfgbAOoUpnQwjGxfF+oa901rAZLEW60d70tES1HiPpU9+LrcZapjfJ614qO3mmZlY1Z7/9Kvr4k6e2CK5LW+MNJPNw+v+ajKfToxkJFttjnZ+de/9DICZWO7X14tQ+/UwK9o7NCeGVaH6+7X2idrSE/RC3GW5oas7BT4DIOiML1Z3On4yzMWCg/N2Etsh6goeC34DkNjRAIk9BUqLY5rtEHUFjwW/AnzMbiwMk9iuL8CAPJQWxzTbIeoKHgt+C/gk+yhI9RkANFslKS2OabbMtQSPBQAcmpP+mN2vobQ4ptmKVyMAAKQFEgsAAABkARILAAAAZAESCwAAAGQBEgsAAABkYQQSq15V9Hz0AxwHZPGd3gvTAKMmU34y5cA3KNNVAHA0lJdYumicc0XycvyzmQYXJvzvyL5oEVjCbegHOvp9qGu48Sco6sY31BKR9wYd6ioAOAb+B8MaHlT94vPLAAAAAElFTkSuQmCC" alt="" />

调用结构如下:

      link.iterator();       找到AbstractSequentialList中的iterator()方法,返回ListItr对象。

     linkedList中实现了ListItr ,所以 link.iterator();便把linkedList中的ListItr给返回过去了。

     linkedList在ListItr实现了接口Iterator,同时实现了三个方法(hasNext(),next(),remove())。

这里涉及到子类的继承和接口的实现,特别是子类对父类的方法覆写,不是太明白的话可以好好研究研究。

程序中有段循环挺溜的,贴出来分享一下:这是查找某个数据在链表中的位置。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlIAAAB7CAIAAAAwgfnzAAAQl0lEQVR4nO2dK4/jOACA/YdaleR/VJWKw1cLRioYOFpQdFKl6kDJwZNWHZ3UQyOtjhy6JQEHBi1dXDr0DuTlZ2Knbh7NF31gN+M4dtz6q1+x+H7NAAAAZoIYPAUAAAC90Ul72a+/iO1Lyel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gRqL991j42HAABgmoRvM5seB080AABANzq/pQUAAGB6oD0AAJgRaA8AAGYE2gMAgBmB9gAAYEagPQAAmBFoDwAAZsT/1NHYB555pO0AAAAASUVORK5CYII=" alt="" />

根据源码简单的实现了一下linkedList的基本功能代码如下:

package com.zpj.LinkedList;

import java.util.Iterator;
import java.util.NoSuchElementException; public class LinkedList<T> implements Iterable<T> { private static class Node<T> {
Node<T> previous;
Node<T> next;
T data; public Node(Node<T> previous, Node<T> next, T data) {
super();
this.previous = previous;
this.next = next;
this.data = data;
}
} private Node<T> head = new Node<T>(null, null, null);
private int size = 0; public LinkedList() {
head.previous = head.next = head;
} public boolean add(T data) {
return addData(data, head);
} private boolean addData(T data, Node<T> node) {
if (data == null) {
return false;
}
Node<T> tempNode = new Node<T>(node, node.next, data);
node.next.previous = tempNode;
node.next = tempNode;
size++;
return true;
} public T get(int index) {
Node<T> node = head.next;
if (index < 0 || index > size)
throw new IndexOutOfBoundsException("");
if (index < (size >> 1)) {
for (int i = 0; i < index; i++) {
node = node.next;
}
} else {
for (int i = size; i > index; i--) {
node = node.previous;
}
}
return node.data;
} private class ListItr implements Iterator<T> {
private Node<T> lastReturnNode;
private Node<T> nextNode;
private int nextIndex; public ListItr(int index) {
if (index < 0 || index > size)
throw new IndexOutOfBoundsException("Index:" + index + ";size:" + size);
if (index < (size >> 1)) {
nextNode = head.next;
for (nextIndex = 0; nextIndex < index; nextIndex++) {
nextNode = nextNode.next;
}
} else {
nextNode = head.previous;
for (nextIndex = size; nextIndex > index; nextIndex--) {
nextNode = nextNode.previous;
}
}
} @Override
public boolean hasNext() {
return nextIndex != size;
} @Override
public T next() {
if (nextIndex == size)
throw new NoSuchElementException();
lastReturnNode = nextNode;
nextNode = nextNode.next;
nextIndex++;
return lastReturnNode.data;
} @Override
public void remove() {
}
} @Override
public Iterator<T> iterator() {
return new ListItr(0);
} }

LinkedList的实现本身不是很复杂,在这里只记录了一些自认为比较关键的几个点,如果想深入了解可以看下这篇博客http://www.cnblogs.com/ITtangtang/p/3948610.html写的挺漂亮的!

源码解读—LinkedList的更多相关文章

  1. jdk1.8.0_45源码解读——LinkedList的实现

    jdk1.8.0_45源码解读——LinkedList的实现 一.LinkedList概述 LinkedList是List和Deque接口的双向链表的实现.实现了所有可选列表操作,并允许包括null值 ...

  2. LinkedList 源码解读

    LinkedList 源码解读 基于jdk1.7.0_80 public class LinkedList<E> extends AbstractSequentialList<E&g ...

  3. HttpClient 4.3连接池参数配置及源码解读

    目前所在公司使用HttpClient 4.3.3版本发送Rest请求,调用接口.最近出现了调用查询接口服务慢的生产问题,在排查整个调用链可能存在的问题时(从客户端发起Http请求->ESB-&g ...

  4. JDK容器类List,Set,Queue源码解读

    List,Set,Queue都是继承Collection接口的单列集合接口.List常用的实现主要有ArrayList,LinkedList,List中的数据是有序可重复的.Set常用的实现主要是Ha ...

  5. solr源码解读(转)

    solr源码解读(转)原文地址:http://blog.csdn.net/duck_genuine/article/details/6962624 配置 solr 对一个搜索请求的的流程 在solrc ...

  6. HttpClient4.3 连接池参数配置及源码解读

    目前所在公司使用HttpClient 4.3.3版本发送Rest请求,调用接口.最近出现了调用查询接口服务慢的生产问题,在排查整个调用链可能存在的问题时(从客户端发起Http请求->ESB-&g ...

  7. 【Java集合】ArrayDeque源码解读

    简介 双端队列是一种特殊的队列,它的两端都可以进出元素,故而得名双端队列. ArrayDeque是一种以循环数组方式实现的双端队列,它是非线程安全的. 它既可以作为队列也可以作为栈. 继承体系 Arr ...

  8. SDWebImage源码解读之SDWebImageDownloaderOperation

    第七篇 前言 本篇文章主要讲解下载操作的相关知识,SDWebImageDownloaderOperation的主要任务是把一张图片从服务器下载到内存中.下载数据并不难,如何对下载这一系列的任务进行设计 ...

  9. SDWebImage源码解读 之 NSData+ImageContentType

    第一篇 前言 从今天开始,我将开启一段源码解读的旅途了.在这里先暂时不透露具体解读的源码到底是哪些?因为也可能随着解读的进行会更改计划.但能够肯定的是,这一系列之中肯定会有Swift版本的代码. 说说 ...

随机推荐

  1. 【转】第7篇:Xilium CefGlue 关于 CLR Object 与 JS 交互类库封装报告:全自动注册与反射方法分析

    作者: 牛A与牛C之间 时间: 2013-12-12 分类: 技术文章 | 2条评论 | 编辑文章 主页 » 技术文章 » 第7篇:Xilium CefGlue 关于 CLR Object 与 JS ...

  2. Pigs and chickens

    “Pigs and chickens”是Scrum软件开发模式中的一个比喻,用来比喻参会者在每天的Scrum会议中所起的作用. 在橄榄球中,scrum的意思是“重新开始游戏”.对于程序员来说,每日Sc ...

  3. Live Writer安装报错的问题,OnCatalogResult:0x80190194

    到官网下载了一个在线安装程序,可是一运行就提示无法安装,显式错误"OnCatalogResult:0x80190194",如下图所示   找到windows live安装程序的安装 ...

  4. java序列化---转

    Java 序列化Serializable详解(附详细例子) 1.什么是序列化和反序列化Serialization(序列化)是一种将对象以一连串的字节描述的过程:反序列化deserialization是 ...

  5. 熊猫TV提示“您的账号存在被盗风险,请在网站上登录解锁”

    在密码下方,点击获取验证码即可.

  6. LintCode "Longest Increasing Continuous subsequence II" !!

    DFS + Memorized Search (DP) class Solution { int dfs(int i, int j, int row, int col, vector<vecto ...

  7. MySQL压缩包安装

    1.解压缩 2.添加环境变量 3.添加配置文件 my.ini 4.以管理员身份初始化数据库 mysqld --initialize --user=mysql --console 5.以管理员身份将My ...

  8. bzoj3905: Square

    Description Nothing is more beautiful than square! So, given a grid of cells, each cell being black ...

  9. SVN服务器几种备份策略---重点svnsync备份---OK

    配置管理的一个重要使命是保证数据的安全性,防止服务器应硬盘损坏.误操作造成数据无法恢复的灾难性后果.因此制定一个完整的备份策略非常重要. 一般来说,备份策略应规定如下几部分内容:备份频度.备份方式.备 ...

  10. 黄聪:走进wordpress do_action函数

    再看do_action函数.位于plugin.php352行.我把源码放在西街口这里,略去了其它辅助处理的语句. 如下: function do_action($tag, $arg = '') {   ...