使用方法和函数时访问变量问题

时间:2017-03-30 03:12:58

标签: javascript jquery function

 var generateSearchObject = function() {
            var searchObj = {
                /*value assigned to variable "check" should be here like "fileName":check*/
            };
            return searchObj;
        };

var s =  {
renderBreadCrumbs: function(breadCrumbs, state, node) {
                $(breadCrumbs).each(function(index, value) {
                    //var check = "Something";
                });
                        //return check
            }
 }

我尽力解决此问题并与社区联系。我想访问searchObj中$(breadCrumbs)中的变量。谢谢。

0 个答案:

没有答案