2

これをどのように処理できますか:

... value="{{thing['attr']}}" ...

未定義のものの''として?私は試した

... value="{{thing['attr'] if node else ''}}" ...

しかし、それは不平を言います、そのことは定義されていません。

4

1 に答える 1

3
{{thing['attr'] if defined('thing') else ''}}
于 2012-04-19T15:12:30.017 に答える