Twaver

Twaver中拓扑图创建时根据value值设置隐藏


<div>
    <input type="text" id="GameOver" />
    <input type="button" value="隐藏" onclick="setUnvisible(resid)" />
</div>



						//根据节点的id,隐藏相应的节点
						function setUnvisible(resid){
							element = network.getElementAt(event);
							//resid = element.getClient("resid");
							var finder = new twaver.QuickFinder(box,"resid","client");
							var ID = document.getElementById("GameOver").value;
							var list = finder.find(ID);
							if(list.size()>0){
								(list.get(0)).setVisible(false);
							}
						}

你可能感兴趣的:(TWaver)