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" }}

编辑角色
新增角色
{{range $i,$v := .data}} {{end}}
用户编号 用户名 密码 性别 年龄 手机号 邮箱 角色 状态 操作
{{$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" .}}

{{end}}`

Comment From: xiaobai-6011

` {{define "header/bodybuttom.html"}} var objectDoc = $('#contentObject')[0].contentDocument || objectElement.contentWindow.document objectDoc.open() objectDoc.write(content) objectDoc.close() })

{{end}}

There is a page in this line that goes to this place