freemarker中include与import的区别

  在inc1.ftl与inc2.ftl中的内容分别是: <#assign username="刘德华">与<#assign username="张学友"> 接着我在hello.ftl模版中用include将inc1.ftl包含进来 <#include "/inc/inc1.ftl"> ${username} 此刻获取的结果是:刘德华   接着我们在hello.ftl用include将inc1.f
相关文章
相关标签/搜索