W3School TIY
编辑您的代码:
This is a paragraph.
This is another paragraph.
把 switch 参数设置为 false,可以隐藏所有段落。
显示所有 p 元素
查看结果: