function 返回值问题 function nodeInfo(nodeName){
var showhtml=null;
$.ajax({
type:"POST",
contentType:"application/json",
url:"/SZGW_WEB/NodeInfoServlet?nodeName="+nodeName+"&action="+"name",
dataType:'json',
error:function(result){
alert("lianjieshibai");
},
success:function(result){
var obj=result;
for(var i=0;i<obj.length;i++){
//var nodeName=obj[i].nodeName;
if(nodeName){
var value=obj[i].value;
var time=obj[i].time;
var tname=obj[i].tname;
var units=obj[i].units;
var opendegree=obj[i].opendegree;
var name=obj[i].name;
var tubulationName=obj[i].tubulationName;
var status=obj[i].status;
var type=obj[i].type;
showhtml=showhtml+"节点名称:"+nodeName+" "+"所属管段:"+tubulationName+"<hr/>";
if(status==str1){
if(type=="监测"){
showhtml=showhtml+time+"<br/>" + "设备名:" +name + "<br/>"+tname+":"+value+units +"<br/>"+"<br/>";