发布于 2015-08-12 16:04:51 | 646 次阅读 | 评论: 0 | 来源: 网络整理
Party like it’s one-oh!
touch module from default distribution$.fn.filter(function(index){ ... })$.fn.contents()$.fn.wrapInner()$.fn.scrollTop()$.contains()$.fn.has()$.fn.position()$.fn.offsetParent()$.parseJSON()$.camelCase()$.isWindow()$.grep() (interface to Array.filter)$(html, attributes) syntax for element creationmouseenter and mouseleave events$.fn.offset(coordinates)$.fn.detach()cache: false optioncancelTouch for tap eventsprev and next now support an optional selector argument$.fn.find and $.fn.closest now support Zepto objects as arguments$.extend(true, target, source)$.fn.wrap() and $.fn.wrapAll()$.fn.wrap() and $.fn.wrapInner()animate, e.g. slow.timing-function for animate$.fn.trigger() or $.Event()> * queries$.os.phone and $.os.tablet (booleans)on or offval for multiple selectload success callback to match jQuery.css with 0 values and falsy valuescss performance issues with string values$.ajaxJSONP when invoked directlyanimate with 0 durations.toggle and fadeToggle for multiple elements.$.fn.load behavior with selectorattr(name, null) unset attributeanimate in Firefoxanimate for elements just added to DOM$.paramtraditional: true option in $.ajaxfocus & blur event delegation and enable unbind$()children method for XML documents<script> content when src is presentprocessData option for $.ajax()contentType: false to $.ajax()focus() and blur() to all elements in collection$.fn.map() to return a Zepto collectionon(evt, selector, fn) can be false$('#')$.supportreturn false in event handler calls stopPropagation()$.isPlainObject() for window in Opera$.ajax error callback correctly reports abort statushasClass in collections of multiple elementseach() when the callback returns falsexhr factory per-requestget() method accept negative indextoggleClass()ajaxJSONPdata argument for various Ajax methods$.getJSONThe semicolon-free edition! That’s right, we removed all trailing semicolons from the source and tests. They were never needed anyway.
New methods:
New module:
:visible and :firstcss(property, '') removes the propertyend & andSelf from core to the new “stack.js” plugin$.zepto object for extending or overriding Zepto functionality.Apart from improving the basic data method in core, the “data.js” module got improvements as well:
removeData methoddataType: 'jsonp' in $.ajaxdata in $.ajaxJSONPdataType isn’t setanimate() method;fn.on() & off();See full release notes.
$.each, $.map, $.slice;.serializeArray(), .serialize();.triggerHandler();.wrap, .wrapAll, .unwrap, .width/height setters, .append (and friends) improvements;.anim() accepts CSS transform properties;return false in event handlers cancels browser event behavior..add, .appendTo, .prependTo, .replaceWith, .empty, .submit;.add/.remove/.toggleClass;.not, .children, .siblings, $.param;.attr & .html;.anim..find, .each, .closest;.eq, .size, .parent, .parents, .removeAttr, .val;.html, .attr;.toggleClass, .attr setter, .last, .undelegate, .die;$ fragments.First. Release. Ever.