Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能运行的,应该是删了很多。很多变了都没有初始化 #2

Open
bigdee0621 opened this issue Apr 5, 2020 · 5 comments

Comments

@bigdee0621
Copy link

No description provided.

@jiehu0992
Copy link
Owner

不会啊 ,一致在运行,你可以去gitee,https://gitee.com/myitv/genealogy_familytree

@bigdee0621
Copy link
Author

不会啊 ,一致在运行,你可以去gitee,https://gitee.com/myitv/genealogy_familytree

function sonTree() if($v["is_link"]==0){ # $v 未定义
function lefttree() $categorylist.=sonTree($tree[$v["id"]],$tree,0,$type); $type 未定义

@jiehu0992
Copy link
Owner

jiehu0992 commented Apr 7, 2020 via email

@bigdee0621
Copy link
Author

能运行只能说你解析器有问题。
这里的$v["is_link"] 没传参,没全局变量, 怎么运行?
`
function sonTree($arr,$tree,$level,$type){
$level++;
$ii=0;
foreach($arr as $k2=>$v2){
$ii++;

	if($tree[$v2["id"]]){
		$categorylist.="<li><a href=\"#\">".$v2["name"]."</a>\n";
		$categorylist.="<ul>\n";
		$categorylist.=sonTree($tree[$v2["id"]],$tree,$level,$type);
		$categorylist.="</ul>\n";
		$categorylist.="</li>\n";
	}else{
		if($v["is_link"]==0){
			$categorylist.="<li><a href=\"#\">".$v2["name"]."</a></li>";
		}
	}
}
return $categorylist;

}`

@jiehu0992
Copy link
Owner

jiehu0992 commented Apr 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants