<html>
<head></head>
<body>
<tr>
<th>身份证号码</th>
<td id="sfzhm"></td>
</tr>
</body>
<script type="text/javascript">
var zjhm='${xxxxx.sfzjhm}' //el表达式
zjhm=zjhm.replace(zjhm.substr(8,6), "******")
$("#sfzhm").html(zjhm)
</script>
</html>
转载于:https://www.cnblogs.com/libo199374/p/8065493.html