function GridRowOnDblClick(strFile, pkValue, rowIndex) { var obj = getUrlArgs(); var postdata = JSON.stringify( { "value1": obj.CS, "value2": pkValue }); $.ajax({ type: "POST", contentType: "application/json", url: "/SlnWLPZ/KCWLPZ.aspx/GetQGWish", data:postdata, dataType: ‘json‘, success: function (result) { var json = eval(result.d); if (json == "1") { var r=rowIndex*1+1; $("#grdTest tr:eq("+r+")").css("background-color",‘#76EE00‘); //var grid = document.all.grdTest; //var selectedRow = grid.rows[r]; //selectedRow.style.backgroundColor = ‘#76EE00‘; } if (json == "0") { alert(‘配置出错‘); } return false; } //success: function(result) }); //$.ajax return false; }
时间: 2024-10-17 07:48:13