我的 src 中有一個 index.jsp 頁面,其中包含以下行
<html>
<body>
<%@ page import = "java.io.*,java.util.*" %>
</body></html>
但是在進行 ng 構建之后,dist 檔案夾包含與下面相同的 jsp 頁面。
<html>
<body>
<%@ page import = "java.io.*,java.util.*" %>
</body></html>
關于為什么 < 被 lt 和 > 被 gt 取代的任何想法?有什么選項可以覆寫它嗎?
問候,加內什。
uj5u.com熱心網友回復:
查看 https://angular.io/guide/security 出于安全原因,Angular 將不安全字符替換為安全值。就個人而言,我在編譯 Angular 代碼后添加了我的 JSP 代碼。我從 index.html 檔案中取出 Angular 代碼,并將其放入我的 Web 服務器的 index.jsp 檔案中。您還應該了解 HTML 物體。看看https://developer.mozilla.org/en-US/docs/Glossary/Entity
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/427040.html
