var ftOpreat = function (value,rows){ var v = rows.Version; var preview = "<a href="#" onclick=btnPreviewClick('"+ rows.QuestionID +"','"+ rows.QuestionName +"','"+ rows.Instruction +"')> 预览</a>"; if(v > 1){ return preview + "<a href='#' onclick='btnHistoryClick("+ rows.QuestionID +")'> 历史版本</a>"; } else{ return preview; } }