leohxj
9/13/2013 - 9:21 AM

jQuery与DOM对象转换

jQuery与DOM对象转换

// DOM -> jquery
var $nav = $('#nav');

// jquery -> DOM
var nav = $('#nav')[0];