나는 다음과 같은 코드를 가지고 : 함수가 객체 $의 .modal에게 주어진 그냥 모달되지 않는 이유
(function ($) {
/**
* Opens a new modal window
* @param object options an object with any of the following options
* @return object the jQuery object of the new window
*/
$.modal = function (options) {
var settings = $.extend({}, $.modal.defaults, options),
root = getModalDiv(),
누군가가 설명 할 수 있습니까? 또한 첫 번째 줄의 중요성은 무엇입니까?
그것을, 그들은 "$"의 jQuery를 네임 스페이스를 withing에 실행하도록 정의하고 JQuery와 플러그인이기 때문입니다. – meagar
@meagar : 사람들은 항상 이런 상황에서이 말을 계속하고 있습니다. 이것은 답변입니다. –
글쎄요. ok ... then – meagar