1.thymeleaf 取值给控件 <span th:text="hello, ${user.name}!|">,input用th:value=${
user.name}
2.赋值给js变量
<script th:inline="javascript">
var name = [[${bContent.name}]];
console.log("name=="+name);
</script>
3.js取值:如radio $('[name="sex"]:checked").val();普通控件可以用$(#name).val()