Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何处理:
... value="{{thing['attr']}}" ...
as '' 对于未定义的事物?我试过了
... value="{{thing['attr'] if node else ''}}" ...
但它抱怨说,那件事没有定义。
{{thing['attr'] if defined('thing') else ''}}