簡體   English   中英

何時使用字符串插值,未轉義?{} 在哈巴狗?

[英]When to use string interpolation, unescaped !{} in pug?

是否有用於,{} - 字符串插值的用例? 逃脫? 鑒於使用有風險?

我檢查了以下鏈接:

https://pugjs.org/language/interpolation.html#string-interpolation-unescaped

在翡翠模板中使用,{}和#{}插值(感嘆號對象,哈希對象)

https://www.reddit.com/r/node/comments/8kcz7s/can_someone_explain_the_difference_between/

從文檔中簡單地說: never trust user input ,所以回答您的問題時使用!{}僅當它不是用戶輸入或您不信任的某些代碼時

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM