JSON.stringify(国丰PU3023)

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;
} 
posted @ 2015-03-20 19:55  大虎1  阅读(197)  评论(0编辑  收藏  举报