将数组作为参数传递时访问JQuery对象

将数组作为参数传递时访问JQuery对象,jquery,coffeescript,Jquery,Coffeescript,这段代码为我提供了像{search:…}这样的简单对象 但是 我想得到jquery选择器对象,我是说$'input-Selector' 我用searchAttrName传递这个@object,它是简单对象{}而不是jquery对象 你在哪里设置@?什么是somefunction,它与数组有什么关系?请把它放在问题中。注释中没有格式,代码很难阅读。 $('input-selector').somefunction([{search:function(){ funabc(@); }]) $("te

这段代码为我提供了像{search:…}这样的简单对象

但是

我想得到jquery选择器对象,我是说$'input-Selector'


我用searchAttrName传递这个@object,它是简单对象{}而不是jquery对象

你在哪里设置@?什么是somefunction,它与数组有什么关系?请把它放在问题中。注释中没有格式,代码很难阅读。
$('input-selector').somefunction([{search:function(){ funabc(@); }])
$("textarea[name='medicine_type[print_format]']").textcomplete [ { words: ['asad'] match: /\b(\w{1,})$/ search: (term, callback) -> callback $.map(that.searchAttrName(@), (word) -> if word.indexOf(term) == 0 then word else null ) return index: 1 replace: (word) -> word + ' ' }]