handlebars 多狀態判斷輸出,html轉義or不轉義

問題: 當在handlebars模板遇到分狀態status=1,2,3,4,5…顯示不用的狀態label或者按鈕時怎麼辦?html 好比這樣web 再好比這樣express 解決辦法: handlebars自己是沒有辦法的,只能藉助handlebars的一個神奇功能:Helperssvg 1.模板:ui <span class="export-text"> {{checkStatus status
相關文章
相關標籤/搜索