(function(){ 
  var doc=getCurrentDocument();  
  var html = ""; 
var opcation =getItemValueAsString("opcation"); 
  if('选项A'.equals(opcation)){ 
  html+="<o-action action-type='documentshowhidden' documenthidden='控件的ID' documentshow=''>hidden</o-action>"; 
  }else{ 
  html+="<o-action action-type='documentshowhidden' documenthidden='' documentshow='控件的ID'>show</o-action>"; 
  } 
  return html; 
})(); |