递归函数的例子|递归函数的使用

 public bool ChooseArticle(TreeNode node)
    {
        bool tempState = false;
        string tempStrandName="麻醉专家咨询库";
        string tempCustomName="医院知识库";
        if (tempStrandName==node.Text||GetRootName(node) == tempStrandName)
        {
            tempState= true;
        }
        else if (tempCustomName == node.Text || GetRootName(node) == tempCustomName)
        {
            tempState = false;
        }
        return tempState;
    }
    public string GetRootName(TreeNode node)
    {

        if (object.Equals(node.Parent, null))
        {
            return node.Text;
        }
        else
        {
            return GetRootName(node.Parent);
        }
    }

<script type="text/javascript"><!-- google_ad_client = "pub-1985112462197986"; /* 新广告 336x280, 创建于 10-8-20 */ google_ad_slot = "6915893334"; google_ad_width = 336; google_ad_height = 280; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><script type="text/javascript"><!-- google_ad_client = "pub-1985112462197986"; /* 336x280, 创建于 10-6-25 */ google_ad_slot = "9255958887"; google_ad_width = 336; google_ad_height = 280; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

你可能感兴趣的:(JavaScript,Google,咨询)