对响应隐藏部分javascript代码
嗨,我有一个包含模板的js文件对响应隐藏部分javascript代码,javascript,html,asp.net,templates,Javascript,Html,Asp.net,Templates,嗨,我有一个包含模板的js文件 data["isShowEdit"] = isShowEdit; smartScreen.template = { showAction: _.template("<div class=\"SmartScreenDesignAction\" >" + "<% if (isShowEdit) { %&
data["isShowEdit"] = isShowEdit;
smartScreen.template = {
showAction: _.template("<div class=\"SmartScreenDesignAction\" >" +
"<% if (isShowEdit) { %> <a href=\"#\" class=\"btn btn-xs btn-default smartScreen-edit\" rel=\"{{id}}\"><i class=\"fa fa-pencil\"></i></a> <% } %>" +
"<a href=\"#\" class=\"btn btn-xs btn-default smartScreen-delete\"rel=\"{{id}}\" ><i class=\"fa fa-trash-o\"></i></a>" +
"</div>"),
showActionColumn: _.template("<div class=\"SmartScreenDesignInputAction\">" +
"<a href=\"#\" class=\"btn btn-xs btn-default smartScreen-delete\" rel=\"{{id}}\"><i class=\"fa fa-trash-o\"></i></a>" +
"</div>")
data[“isShowEdit”]=isShowEdit;
smartScreen.template={
showAction:\ 0.template(“”)+
" " +
"" +
""),
showActionColumn:\模板(“”)+
"" +
"")
我的问题是代码的第一部分(showAction:_templateisshowedit part)可以在响应中看到。我希望此部分仅出现在后端,因为它会导致安全漏洞
我怎样才能隐藏这部分。提前谢谢