The object tag I used in the outer layer nested the subpages, but when I rendered the <script < symbol was automatically replaced with \x3C, which I found by accident, but the tag I used in the page would sometimes be replaced and sometimes not, so that the page of my program was directly white screen, I wanted to solve this problem, I tried to put js into the template. But this way it doesn't replace
`{{define "UserManage/UserList.html"}} {{template "header/bodytop.html" }}
编辑角色
新增角色
用户ID
用户名
用户手机号
用户编号 | 用户名 | 密码 | 性别 | 年龄 | 手机号 | 邮箱 | 角色 | 状态 | 操作 |
---|---|---|---|---|---|---|---|---|---|
{{$v.id}} | {{$v.name}} | {{$v.password}} | {{$v.sex}} | {{$v.age}} | {{$v.userPhone}} | {{$v.email}} |
{{ if eq $v.roleName "超级管理员" }}
{{ $v.roleName }}
{{ else if eq $v.roleName "管理员" }}
{{ $v.roleName }}
{{ else }}
{{ $v.roleName }}
{{ end }}
|
{{if eq $v.isOpen "1"}} {{else}} {{end}} |
{{template "header/uikit-page.html" .}}
{{template "header/bodybuttom.html" }}
{{end}}`
`{{define "header/bodytop.html"}} {{template "home/home.html" .}}