gpt4 book ai didi

javascript - 它有什么作用? ;jQuery.ui || (函数($){

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:38:09 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
What is the consequence of this bit of javascript?

我正在浏览 JQuery UI 的源代码。我在js文件的开头看到了这一行:

;jQuery.ui || (function($) {

它有什么作用?

(更多来自 jquery.ui.core.js)

/*!
* jQuery UI 1.8
*
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
;jQuery.ui || (function($) {
.ui = {
version: "1.8",

// $.ui.plugin is deprecated. Use the proxy pattern instead.
plugin: {
...

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com