vbscript 如果占位符为空或具有默认内容,请将其隐藏。在自定义代码选项卡中添加相关代码。如果你想添加一个类wh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 如果占位符为空或具有默认内容,请将其隐藏。在自定义代码选项卡中添加相关代码。如果你想添加一个类wh相关的知识,希望对你有一定的参考价值。

'hide placeholder
If Control.IsEmptyOrDefaultContent("[right column]") then
  Control.visible = false
End If

'add class if placeholder is hidden
If Control.IsEmptyOrDefaultContent("[right column]") then
  Control.visible = false
  
  [idSelector].attributes("class")= [idSelector].attributes("class") & " testing"
End If

以上是关于vbscript 如果占位符为空或具有默认内容,请将其隐藏。在自定义代码选项卡中添加相关代码。如果你想添加一个类wh的主要内容,如果未能解决你的问题,请参考以下文章