标签:
if: < #if > < #else > < #/if >
list: < #list > < #/list >
判断:
< #if userCode?? > 👉usercode是否为空.
<# if userCode??&&userCode==" admin" > 👉usercode是否为admin
console.log( "我是admin" ); 👉操作
< #else >
console.log(" 我是普通用户 ");
< #/if >
注意: usercode 不能==boolean类型, 可==String类型.