随笔集
2018-04-21
1.问题:前端到底能不能将BigDecimal传个我啊?
答:虽然说前端没有这样的数据类型,但是后台能接受到成BigDecimal
2.问题:themleaf对于如果是1则显示A 如果是2显示B 如果是3显示C 如果是4显示D
虽然有th:text="${a==a?'a':'不是a'}”我这个岂不是写的又臭又长
答:是的
内容如下,真实可测
A
3.themleaf字符串截取,前10位
th:text="${#strings.abbreviate(worksheetOne.content,10)}"
str截取0-10位,后面的全部用…这个点代替,注意,最小是3位
4.对象传参方法如下
function findEmpByUserId() {var userId = parseInt($(".p_user").text());console.log("hehe"+userId);util.ajax('/setting/empList/findEmpByName?userId='+userId, {}, function (result) {if (result.success) {console.log(result)console.log(result.spUserDto.fullName);$(".p_user").text(result.spUserDto.fullName);}});
}
而不是
function findEmpByUserId() {var userId = parseInt($(".p_user").text());console.log("hehe"+userId);util.ajax('/setting/empList/findEmpByName', {userId: userId}, function (result) {if (result.success) {$('#p_user').append("" + result + "
")}});
}
5.themleaf 后台需要传入page对象
5.themleaf 或者表达式写法
... do something ...
datagrip破解步骤:https://blog.csdn.net/weixin_39428938/article/details/81078806 亲测可行
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
