html中尖括号百分比的目的是什么?

时间:2015-12-22 15:36:40

标签: html html5 user-interface

我只是想知道<%这些究竟是做什么的? %GT;我用这些来导出一些html表和数据到excel,但我真的不知道它的功能是什么。 任何答案都表示赞赏。

所以当我在下面的编码中使用这些时,我实际上是在使用asp吗?

<body>
<%
    String exportToExcel = request.getParameter("exportToExcel");
    if (exportToExcel != null && exportToExcel.toString().equalsIgnoreCase("YES")) { //application/vnd.ms-excel
        response.setContentType("application/vnd.ms-excel"); //application/vnd.opentextformatsofficedocument.spreadsheetml.sheet
        response.setHeader("Content-Disposition", "inline; filename=" + "whatever.xls");
    }
%>

我是从http://www.quicklyjava.com/export-web-page-to-word

获得的

1 个答案:

答案 0 :(得分:1)

在这里回答:Name for Angle Bracket Percent Sign。然后链接到另一个答案。

简而言之,它们是在呈现页面时执行的代码渲染块。从我可以收集到的内容中,它们是ASP.net框架的一部分。

更多信息:here

编辑:正如其他人评论的那样,我通过快速搜索找到了所有这些。

相关问题