0

Visual Studio 2012 为我提供了折叠此功能的可能性(请参见左侧的小“-”图标)。

坍塌

有时他会武断地决定我不能那样做。

没有崩溃

有人可以解释为什么以及如何解决它吗?我想折叠代码中的每个函数:我可以这样做吗?如何?

看起来像是在我的代码中放置$.get,$('selector')$.each调用导致了这个问题,但由于它看起来像是一种随机行为,我无法确定。

这是导致问题的一些随机代码:

function ComputeHigherZIndex() {

        var highest = null;

        $('#@(mdi.ContainerDivId)').find('.dynawindow').each(function () {

            var current = $(this).css("z-index");

            if (highest == null || highest < current) {
                highest = current;
            }
        });

        return highest;
    }
4

0 回答 0