가능한 중복 :.
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: {
...
참조 http://stackoverflow.com/questions/1031718/what-is-the-consequence-of-this-bit-of-javascript – JJJ