原創(chuàng)|使用教程|編輯:龔雪|2019-07-18 14:10:39.647|閱讀 463 次
概述:Kendo UI目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四個(gè)控件,本教程為大家介紹如何開始使用Kendo UI的CDN服務(wù)。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Kendo UI目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四個(gè)控件。Kendo UI for jQuery是創(chuàng)建現(xiàn)代Web應(yīng)用程序的最完整UI庫;Kendo UI for Angular是專用于Angular開發(fā)的專業(yè)級Angular UI組件;Kendo UI Support for React支持React Javascript框架,更快地構(gòu)建更好的應(yīng)用程序;Kendo UI Support for Vue為Vue技術(shù)框架提供可用的Kendo UI組件,更快地構(gòu)建更好的Vue應(yīng)用程序。
Kendo UI CDN托管在上。
要訪問Kendo UI CDN服務(wù),您可以使用以下任一方法:
所有JavaScript文件的縮小版本均可在以下位置獲得:
例如,可以從以下位置加載2019.2.619版本:
注意:只有Kendo UI官方發(fā)行版和服務(wù)包才會(huì)上傳到CDN,內(nèi)部版本不會(huì)發(fā)布到CDN。
截至Kendo UI Q1 2014 SP1發(fā)布,已經(jīng)提供了縮小的Kendo UI腳本。 要加載它們,請使用//kendo.cdn.telerik.com/2019.2.619/js/kendo.ui.core.min.js URL。
注意://cdn.kendostatic.com/ URL仍然有效,但不再推薦用于新項(xiàng)目。
要通過HTTPS協(xié)議訪問Kendo UI CDN服務(wù),請使用與上述相同的主機(jī)名,并將方案(協(xié)議)替換為https-https://kendo.cdn.telerik.com/2019.2.619/js/kendo.all.min.js。
注意://da7xgjtj801h2.cloudfront.net/ URL保持激活狀態(tài),但不再推薦用于新項(xiàng)目。
本節(jié)提供使用Kendo UI CDN服務(wù)時(shí)可能遇到的常見問題解決方案。
雖然提供可靠的正常運(yùn)行時(shí)間支持,但您可能會(huì)遇到中斷或連接問題。 在//status.aws.amazon.com/上檢查系統(tǒng)狀態(tài)后,CDN狀態(tài)將報(bào)告為正常并正常運(yùn)行。
您可能遇到Internet、網(wǎng)絡(luò)連接或DNS問題。 防火墻,防病毒軟件或其他安全軟件也可能錯(cuò)誤地過濾掉CDN腳本或者即時(shí)修改(中斷)它們。
解決方案:請聯(lián)系您的系統(tǒng)管理員,因?yàn)檫h(yuǎn)程調(diào)查連接問題超出了Kendo UI支持團(tuán)隊(duì)的范圍。
Kendo UI內(nèi)部版本不會(huì)上傳到CDN上,因?yàn)樗鼈儍H適用于擁有商業(yè)許可的客戶,只有主要版本和Service Pack才會(huì)上傳到Kendo UI CDN上。
解決方案:對于內(nèi)部版本,請使用私有CDN服務(wù)。 建議在使用任何類型的CDN時(shí)實(shí)施本地回退。
示例:
<!DOCTYPE html> <html> <head><title>Welcome to Kendo UI</title><link rel="stylesheet" href="//kendo.cdn.telerik.com/2019.2.619/styles/kendo.common.min.css" /><link rel="stylesheet" href="//kendo.cdn.telerik.com/2019.2.619/styles/kendo.blueopal.min.css" /> <script src="//kendo.cdn.telerik.com/2019.2.619/js/jquery.min.js"></script> <script> if (typeof jQuery == "undefined") { // fallback to local jQuery document.write(decodeURIComponent('%3Cscript src="/path/to/local/jquery.min.js" %3E%3C/script%3E')); } </script> <script src="//kendo.cdn.telerik.com/2019.2.619/js/kendo.all.min.js"></script> <script> if (typeof kendo == "undefined") { // checking for loaded CSS files is cumbersome, // that's why we assume that if the scripts have failed, so have the stylesheets // fallback to local Kendo UI stylesheets document.write(decodeURIComponent('%3Clink rel="stylesheet" href="/path/to/local/kendo.common.min.css" %3C/%3E')); document.write(decodeURIComponent('%3Clink rel="stylesheet" href="/path/to/local/kendo.blueopal.min.css" %3C/%3E')); // fallback to local Kendo UI scripts document.write(decodeURIComponent('%3Cscript src="/path/to/local/kendo.all.min.js" %3E%3C/script%3E')); // also add kendo.aspnetmvc.min.js or kendo.timezones.min.js, if needed } </script> </head> <body> Hello world! </body> </html>
掃描關(guān)注慧聚IT微信公眾號,及時(shí)獲取最新動(dòng)態(tài)及最新資訊
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)