小编Pow*_*irl的帖子

如何破解包含连字符的长网址

我正在尝试使用乳胶打破长网址。\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}\\\\\n
Run Code Online (Sandbox Code Playgroud)\n\n

这是输出:\n在此输入图像描述

\n\n

你能帮我吗 ?

\n

latex

4
推荐指数
1
解决办法
5192
查看次数

如何在角度中将搜索过滤器添加到选择选项

我试图在选择选项列表中添加添加搜索过滤器,因为有很多选项,并且我认为如果没有搜索,用户将很难找到他要选择的选项。

我希望你能理解我,因为我不会英语。

这是我的代码(这只是表的一部分)

<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)

html multi-select angular select-options

3
推荐指数
3
解决办法
124
查看次数

标签 统计

angular ×1

html ×1

latex ×1

multi-select ×1

select-options ×1