类 GetPageMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.GetPageMethod
- 所有已实现的接口:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
getPage 获取分页url
参数列表
parameter list
パラメータリスト
url
pageIndex
:页码数字string
:分页参数,动态url分页参数名,为空时返回静态化url分页结果
返回结果
return result
戻り値
url
:带分页的url
使用示例
usage example
使用例
${getPage('https://www.publiccms.com/introduction/index_3.html',2)}
${getPage('https://search.publiccms.com/?word=cms',2,'pageIndex')}
<script> $.getJSON('${site.dynamicPath}api/method/getHash?parameters=https://www.publiccms.com/introduction/index_3.html¶meters=2', function(data){ console.log(data); }); </script>
-
字段概要
从类继承的字段 com.publiccms.common.base.BaseMethod
log
从接口继承的字段 freemarker.template.TemplateModel
NOTHING
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.publiccms.common.base.BaseMethod
exec, execute, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
-
构造器详细资料
-
GetPageMethod
public GetPageMethod()
-
-
方法详细资料
-
execute
public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 指定者:
execute
在类中BaseMethod
- 抛出:
freemarker.template.TemplateModelException
-
getPageUrl
-
needAppToken
public boolean needAppToken()- 指定者:
needAppToken
在类中BaseMethod
- 返回:
- whether to need app token
-
minParametersNumber
public int minParametersNumber()- 指定者:
minParametersNumber
在类中BaseMethod
- 返回:
- min parameters number
-