当前位置:网站首页>如何才能快速正确的部署甘特图
如何才能快速正确的部署甘特图
2020-11-06 22:22:00 【roffey】
部署甘特图
在我们的安装中<install path="">\Src文件夹下的文件通常应该在您的web页面中引用,并且也应该部署在您的服务器中。</install>让我们仔细看看这个文件夹的内容:
- 脚本——包含甘特脚本所需的所有jQuery实用工具/插件/小部件文件以及jQuery甘特脚本文件。
- 样式——CSS和图像文件,定义甘特外观和感觉。
- 主题—甘特使用的CSS和图片文件的插件和小部件。
- ResourceStrings——本地化字符串字典在这里定义。默认的英语字符串(默认情况下是必需的)和少数其他区域性的字符串将从这些文件中加载。如果默认支持的字典不够用,可以添加更多本地化字符串字典。
- bin——包含应该在ASP中引用的jQuery Gantt MVC扩展程序集。净MVC项目。
json文件注意事项
必须设置服务器来支持json扩展文件的上传。
默认情况下,服务器不提供.json文件类型(没有通配符MIME类型)。因此,当访问它们时将抛出404 not found。因此,您必须添加MIME类型以允许它提供该类型的文件。您可以在站点级别或服务器级别设置它。
要在IIS中为整个服务器设置此设置:
在IIS管理器中打开服务器的属性并单击MIME类型
单击“新”。输入“json”作为扩展,输入“application/data”作为MIME类型。
在IIS中设置站点级别:
如果您想手动向您的站点添加支持,您可以将以下内容添加到您的web中。在系统中配置。网络服务器:
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/data" />
</staticContent>
注意Date.js文件
您可以看到有一个Src\Scripts\Utils\date.js文件,这是一个必须包含在您的页面中的文件。
对于全球化场景,应该根据页面当前运行的区域性包括几个扩展文件中的一个。例如,如果你在德国文化下运行,你也应该在你的页面中包括这个js文件:Src\Scripts\Utils\全球化\de-DE.js。
单一的HTML示例
在IIS中部署单个甘特HTML示例
在这里,我们将完成将示例(安装的一部分)部署到IIS服务器所涉及的步骤。
要在IIS中部署单个甘特样例,需要将以下文件从安装路径复制到服务器中。
RadiantQ jQuery Gantt Package\Samples\GanttControlSkeleton.htm
RadiantQ jQuery Gantt Package\Samples\GanttControlSkeleton.json
RadiantQ jQuery Gantt Package\web.config
RadiantQ jQuery Gantt Package\Src (exclude the bin folder).
IIS服务器路径中的文件

正如前面部署甘特主题中提到的,确保. JSON的mime类型,以便服务器提供示例JSON文件。


相关产品介绍:
VARCHART XGantt:支持ActiveX、.Net等平台的C#甘特图控件
AnyGantt:构建复杂且内容丰富的甘特图的理想工具
phGantt Time Package:对任务和时间的分配管理的甘特图
dhtmlxGantt:交互式JavaScript / HTML5甘特图
版权声明
本文为[roffey]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4587239/blog/4494421
边栏推荐
- Those who have worked in China for six years and a million annual salary want to share these four points with you
- Windows 10 蓝牙管理页面'添加蓝牙或其他设备'选项点击无响应的解决方案
- Unexpected element.. required element
- 移动端像素适配方案
- 2020-08-17:详细说下数据倾斜怎么解决?
- 磁存储芯片STT-MRAM的特点
- C language I blog assignment 03
- 2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
- Nodejs中使用jsonwebtoken(JWT)生成token的场景使用
- 应用层软件开发教父教你如何重构,资深程序员必备专业技能
猜你喜欢
September 9, 2020: naked writing algorithm: two threads print numbers 1-100 in turn.
Es create a new index database and copy the old index library, practice pro test effective!
Stickinengine architecture 11 message queue
How to manage the authority of database account?
C and C / C + + mixed programming series 5 - GC collaboration of memory management
How does cglib implement multiple agents?
Code generator plug-in and creator preform file analysis
Reserved battery interface, built-in charge and discharge circuit and electricity meter, quickly help easily handle hand-held applications
How much disk space does a new empty file take?
心理咨询app开发所具备的优点与功能
随机推荐
An article takes you to understand CSS3 picture border
Nodejs中使用jsonwebtoken(JWT)生成token的场景使用
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
2020-08-17: how to solve data skew in detail?
Novice guidance and event management system in game development
How to start the hidden preferences in coda 2 on the terminal?
Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
Zero basis to build a web search engine of its own
Vue communication and cross component listening state Vue communication
实用工具类函数(持续更新)
Elasticsearch database | elasticsearch-7.5.0 application construction
[learning] interface test case writing and testing concerns
The memorandum model of behavior model
Using an example to understand the underlying processing mechanism of JS function
STM32F030C6T6兼容替换MM32SPIN05PF
How to prepare for the system design interview
How much disk space does a new empty file take?
Visual rolling [contrast beauty]
C language I blog assignment 03