我正在尝试使用乳胶打破长网址。\n我有 3 个链接,第一个包含连字符的链接不起作用,但其他两个链接可以工作,因为它们不包含连字符。
\n\n我像这样使用 \\url(the_url_to_brak) :
\n\n\\hline \n\\textbf{Documentation} & Riche et peut \xc3\xaatre t\xc3\xa9l\xc3\xa9charg\xc3\xa9e gratuitement sur \\url{https://www.ssi.gouv.fr/guide/ebios-2010-expression-des-besoins-et-identification-des-objectifs-de-securite/}\n& Riche et peut \xc3\xaatre t\xc3\xa9l\xc3\xa9charg\xc3\xa9e gratuitement sur \\url{https://clusif.fr/management_des_risques/}\n& Catalogue de pratiques de s\xc3\xa9curit\xc3\xa9 et d\xe2\x80\x99autres documents peuvent \xc3\xaatre t\xc3\xa9l\xc3\xa9charg\xc3\xa9s gratuitement sur \\url{https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=309051}\\\\\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n你能帮我吗 ?
\n我试图在选择选项列表中添加添加搜索过滤器,因为有很多选项,并且我认为如果没有搜索,用户将很难找到他要选择的选项。
我希望你能理解我,因为我不会英语。
这是我的代码(这只是表的一部分)
<ng-container *ngFor="let menaceProcessus of menaceProcessusTab">
<tr>
<td colspan="4" bgcolor="#f1f1f1"><b>{{menaceProcessus?.processus?.nom}}</b></td>
</tr>
<ng-container *ngFor="let actif of menaceProcessus?.actifs">
<tr>
<td [rowSpan]="actif?.menaces?.length+1">{{actif?.actif?.nom}}</td>
</tr>
<ng-container *ngFor="let mnVuln of actif?.menaces">
<tr>
<td>{{mnVuln?.vulnerabilite?.nom}}</td>
<td>
<select class="form-control"
(change)="mnVuln?.menaceActif?.menace.id = $event.target.value;
updateMenaceProcessus()">
<option></option>
<option *ngFor="let menace of menaces"
[value]="menace.id"
[selected]="menace.id === mnVuln?.menaceActif?.menace.id">
{{menace.nom}}</option>
</select>
</td>
<td>
<input class="form-control"
type="text" [value]="mnVuln?.menaceActif?.probabilite">
</td>
</tr>
</ng-container>
</ng-container>
</ng-container>
Run Code Online (Sandbox Code Playgroud)