0
假設代碼如下或類似的代碼,我如何傳遞{{每個}上下文中的父上下文,或者我如何從單擊事件中訪問它。謝謝。如何訪問模板父上下文
<div>
<ul>
{{#each emoticons[emoticons.state.selected].iconList}}
<li on-mouseover="showEmoticonBig" on-click="@this.fire('selectEmoticon',event,this)" class="emoticons-icon">{{{parseToIcons(.code)}}}</li>
{{/each}}
</ul>
</div
ractObj.off("selectEmoticon").on("selectEmoticon", function (event,context) {
});