http://blog.csdn.net/mypongo/article/details/42241937http://blog.csdn.net/socean_wang/article/details/52400117看下这两个链接,有详细的解释和例子。