SHarepoint Modern UI中的JavaScript [英] JavaScript in SHarepoint Modern UI

查看:150
本文介绍了SHarepoint Modern UI中的JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经创建了具有现代UI的SharePoint Communication网站. 我们需要执行一些Java脚本代码以实现聊天机器人集成. 我们要做的只是引用一些外部js文件.

We have created a SharePoint Communication site with Modern UI. We need to execute some Javascript code for chatbot integration. All we have to do is just reference some external js files.

当现代UI阻止客户端脚本编写时,如何实现?

How this can be achieved as modern UI blocks client scripting?

推荐答案

您需要创建一个经典"页面,因为如上所述,JS无法在现代页面中执行.

You need to create a 'classic' page because, as you mentioned, JS cannot be executed in modern pages.

要这样做:

转到:网站内容站点页面.

Go to: Site Content-Site Pages.

单击新建",然后创建"Web部件"或维基"页面.

Click on 'New' then either create a 'Web part' or 'wiki' page.

然后,在该页面中,只需单击设置(页面顶部的齿轮图标),然后选择编辑此页面.

Then, in that page, simply click on settings(the cog icon at the top of page) then select edit this page.

然后插入内容编辑器Web部件,您可以在其中添加JS代码.

Then insert content editor web part, where you can add the JS code.

有关更多信息,请参见此链接: http://www.isaca-northtexas.org/SharePointTraining/TrainingPages/ContentEditorWebPart. html

See this link for more info: http://www.isaca-northtexas.org/SharePointTraining/TrainingPages/ContentEditorWebPart.html

这篇关于SHarepoint Modern UI中的JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆