使用javascript onclick方法隐藏SharePoint Web部件
我需要一些帮助,我正在尝试使用嵌入在SharePoint内容编辑器Web部件中的JavaScript来隐藏特定的Web部件,因为单击这些项目,但它似乎没有用,任何人都可以给我任何提示/想法吗?
function hidepart() var hlf = document.getElementById("MSOZoneCell_WebPartWPQ3"); MSOZoneCell_WebPartWPQ3.style.display="none"; } enter code here Test
您可以使用以下代码:
enter code here Test