Javascript 什么';Wen jquery和t3jquery的区别是什么
jquery和t3jquery之间有什么区别(jquery直接来自Typo3)以及为什么bootstrap只与第一个jquery一起工作。t3jquery是一个扩展(不是来自核心!),可以选择构建您的单个jquery包(可能包括哪个jquery版本和哪个jquery模块),因此,jQuery的javascript库对于您的需求来说是最小的。您还可以通过从CDN中单击几下就包含jQuery,这对于无法手动包含CDN源或将jQuery版本复制到其服务器的开发人员来说更为容易。Javascript 什么';Wen jquery和t3jquery的区别是什么,javascript,jquery,twitter-bootstrap,typo3-6.2.x,Javascript,Jquery,Twitter Bootstrap,Typo3 6.2.x,jquery和t3jquery之间有什么区别(jquery直接来自Typo3)以及为什么bootstrap只与第一个jquery一起工作。t3jquery是一个扩展(不是来自核心!),可以选择构建您的单个jquery包(可能包括哪个jquery版本和哪个jquery模块),因此,jQuery的javascript库对于您的需求来说是最小的。您还可以通过从CDN中单击几下就包含jQuery,这对于无法手动包含CDN源或将jQuery版本复制到其服务器的开发人员来说更为容易。 本地以外的任何现成构建
本地以外的任何现成构建源都可能包含所有可能的jQuery模块 单个jQuery库可能更快(要加载的代码更少),但所有模块的大包含也可能更快,因为此版本可能已经从其他方面加载了-如果您使用CDN进行包含 如果您从TYPO3源(另一个选项)使用jQuery,您将确保它是可用的(没有其他域访问),并且它将是一个实际版本(只要您更新TYPO3核心),但是您的访问者需要从be访问文件,出于安全原因,这可能会受到限制以保护be 如果您想包括jQuery,可以通过以下方式实现上面的选项: basic include与任何其他javascript文件一样
page.javascriptLibs {
jQuery = 1
jQuery.source = local
}
多个选项:存储在文件系统中某处的jquery副本: 存储在站点扩展中某处的jquery副本: 像CDN一样包含外部数据 来自TYPO3核心的jquery
page.javascriptLibs {
jQuery = 1
jQuery.source = local
}
jquery来自CDN
page.javascriptLibs {
# include jQuery (boolean)
jQuery = 1
# Change the version
# (possible values: latest|1.7.2|…, default: latest)
# Note: jQuery.source has to be a CDN like "google"
# when jQuery.version is not "latest"
jQuery.version = latest
# Include from local or different CDNs
# (possible values: local|google|jquery|msn, default: local)
jQuery.source = jquery
# Set jQuery into its own scope to avoid conflicts (boolean)
jQuery.noConflict = 1
# Change the namespace when noConflict is activated
# and use jQuery with "TYPO3.###NAMESPACE###(…);"
# (string, default: jQuery)
jQuery.noConflict.namespace = ownNamespace
}
扩展t3jquery可以为您包含JS库,但您最好使用它将一个个性化的jQuery库复制到您的文件系统中,您可以自己包含它。6.2 Typo 3,我可以在扩展管理器中加载的最新t3jquery似乎有Cms的版本号和jQuery 3.1.0
page.javascriptLibs {
jQuery = 1
jQuery.source = local
}
page.javascriptLibs {
# include jQuery (boolean)
jQuery = 1
# Change the version
# (possible values: latest|1.7.2|…, default: latest)
# Note: jQuery.source has to be a CDN like "google"
# when jQuery.version is not "latest"
jQuery.version = latest
# Include from local or different CDNs
# (possible values: local|google|jquery|msn, default: local)
jQuery.source = jquery
# Set jQuery into its own scope to avoid conflicts (boolean)
jQuery.noConflict = 1
# Change the namespace when noConflict is activated
# and use jQuery with "TYPO3.###NAMESPACE###(…);"
# (string, default: jQuery)
jQuery.noConflict.namespace = ownNamespace
}