DataTables CDN fallback expressions

老子叫甜甜 提交于 2019-12-25 04:43:28

问题


What are the CDN fallback expressions for the DataTables script and its extensions? https://cdn.datatables.net

For example (source):

jQuery     -->  window.jQuery
jQuery.UI  -->  window.jQuery.ui
Modernizr  -->  window.Modernizr
Bootstrap  -->  $.fn.modal

回答1:


You can determine whether jQuery DataTables is available by testing whether $.fn.dataTable exists.

So I assume you need to use:

bundle.CdnFallbackExpression = "$.fn.dataTable";


来源:https://stackoverflow.com/questions/31707750/datatables-cdn-fallback-expressions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!