如何从函数获取索引并获取值

I want to get index and get value from a function. Here there is a function and that function uses for the return value to <option>. I want to know how can I get the index value to pass the function

 {{#each config}}
    <option>renderGetFunction(index)</option>
 {{/each}}

JS功能:

renderGetFunction: function(index){
  return this.anotherFunction(index);
},
评论