@Component public class GetPageMethod extends BaseMethod
参数列表
url
pageIndex
:页码数字
string
:分页参数,动态url分页参数名,为空时返回静态化url分页结果
返回结果
url
:带分页的url
${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>
log
构造器和说明 |
---|
GetPageMethod() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
execute(java.util.List<freemarker.template.TemplateModel> arguments) |
java.lang.String |
getPageUrl(java.lang.String url,
int pageIndex,
java.lang.String pageParameter) |
int |
minParametersNumber() |
boolean |
needAppToken() |
exec, execute, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
public java.lang.Object execute(java.util.List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
execute
在类中 BaseMethod
freemarker.template.TemplateModelException
public java.lang.String getPageUrl(java.lang.String url, int pageIndex, java.lang.String pageParameter)
public boolean needAppToken()
needAppToken
在类中 BaseMethod
public int minParametersNumber()
minParametersNumber
在类中 BaseMethod