详细说明见http://yuetong.iteye.com/blog/300513