function a(){
        function init(){
            alert("this is init method");
        }        this.onClick = function(e, treeId, treeNode){
            e();
            alert("this is onclick");
        }
        var x = "100";    }
    var a = new a();
    a.onClick(function(){
        alert("asdf")
    });