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.
ifを含むjqueryテンプレートがありますが、ifを評価しません-値をそのまま出力します。これが機能することを示すいくつかの例とドキュメントを見つけました。
私は何が間違っているのですか?
http://jsfiddle.net/G4J5u/
テンプレートタグに余分なスペースがあります。
あなたの:
{{ if disabled}}disabled{{ /if }}
正しい:
{{if disabled}}disabled{{/if}}
JSFiddleでテストしました。