ajax.example({}).then(function (response) {
if (response.errors.length > 0) {
nav.e(response.errors[0].message);
} else {
nav.i("Ajax调用成功!");
}
})
ajax.fileUpload(req.file).then(function (response) {
if (response.errors.length > 0) {
req.onError();
nav.e(response.errors[0].message);
} else {
req.onSuccess();
nav.i("文件上传成功!");
}
})
var evtSource = new EventSource('http://localhost:8080/sse/1');
evtSource.addEventListener('message', function (e) {
console.log(e.data);
});
正常输出
HTML输出
$表达式
${'<#if status == 0>'}
status is 0
${'<#elseif status ==1>'}
status = 1
${'<#else>'}
status != 0 && status !=1
${'</#if>'}
${'<#list citys as city>'}
${r' ${city_index} --> ${city}'}
${'</#list>'}
Tabs位置共有4个位置分别为:
${''?html}
${'
${'...'?html}
${'
因为Long可支持的长度比JavaScript中Number支持的位数更多,所以当Long数值很大时转为Json再转为Number就会丢失精度,造成难以发现的Bug,所以本系统默认处理了该问题。
默认启用全局Date格式化
对于个别返回结果的Date格式化可以通过注解方式
1、本系统启用自定义Token来控制权限,任何访问都会有一个全局Token,任何一处都可以通过
2、对于未登录对象会提供临时(访客)
3、如果系统存在Task等定时任务时,是不存在访问对象,通过
Springboot环境配置文件application-*中配置了系统中需要验证权限和不需要验证的url。而需要验证权限的URl会在