Optimize the code

Version: 2.3
Date: 2014-8-28 19:53:10
Changelog: Optimize the code

Signed-off-by: jssoscar
Fixed the bug if the 'link' parameter not contains '{{#pageNum}}'

Version: 2.3
Date: 2014-8-29 19:44:00
Changelog: Fixed the bug if the 'link' parameter not contains '{{#pageNum}}'

Signed-off-by: jssoscar
.Optimize the code
.Add parameter

Version: 2.4
Date: 2014-9-3 19:18:37

Signed-off-by: jssoscar