jQuery inheritance 상속 구현하기 . ~~
/** * Object Speaker * An object representing a person who speaks. */ var Speaker = { init: function(options, elem) { // Mix in the passed in options with the default options this.options = $.extend({},this.options,options); // Save the element reference, both as a jQuery // reference and a normal reference this.elem = elem; this.$elem = $(elem); // Build the dom initial structure this._build();..
카테고리 없음
2011. 10. 25. 17:02