5

SharePoint Online 部件InjectionScriptWebpart制作新闻详情

 2 years ago
source link: https://www.cnblogs.com/jianyus/p/15871494.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

  前言

  我们基于上一篇博客,把新闻的详细页也给大家演示一下。

  正文

  1.前面创建列表的部分太简单,我们就不罗嗦了,直接创建页面,添加部件,如下图:

  Tips:大家如果对步骤不清楚,可以参考上一篇

256729-20220208153527357-1306820464.png

  2.创建脚本,添加脚本,如下图:

  相比上一篇,我们多加了隐藏页面无关元素的功能,详细的大家点击看大图,就能看到相关代码。

256729-20220208153616183-202889250.png

  3.我们看一下显示的效果,那是棒棒哒,如下图:

256729-20220208153843346-520273107.png

  结束语

  我们使用这个脚本控件,为大家做了简单的演示,大家可以参考一下,也可以大胆想象,可以做很多有意思的功能。

  上一篇:SharePoint Online 部件InjectionScriptWebpart制作新闻列表


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK