0

我有以下html代码

<a href="#" onClick="_gaq.push(['_trackEvent', 'photos', '{{ destination.id || 'home' | lowercase }}', 'click']);">

如果destination.id 不可用,我需要将表达式值作为家。但是当我将 'home' 放在单引号中时,它在 IE8 中的破坏布局并给出错误

实现此方法或任何其他方法的最佳方法是什么

4

0 回答 0