// if(typeof selector === "string") 的情况
// selector 代表的是选择的东西
// context 代表在什么范围内选择(不填就是选择全部)
// $('<li>'); match = [null, '<li>', null];
// $('<li>1</li><li>12</li>'); match = [null, '<li>1</li><li>12</li>', null];
if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
match = [ null, selector, null ];
} else {
// 匹配下面三种情况
// $('<li>hello') //这种情况会直接创建<li>标签,没有里面的hello
// $('#div1')
// $(".box"), $("div"), $("#div1 div.box")
// $('#div1') match = ['#div1', null, 'div1'];
// $('<li>hello') match = ['<li>hello', '<li>', null]
// $(".box"), $("div"), $("#div1 div.box") match = null;
match = rquickExpr.exec( selector );
}
// match = ['选择器 + 要选择的元素', '要创建的元素', '要选择的元素'];
// $('.box') $('div') $('#div1 div.box') match = null;
// $('<li>'); match = [null, '<li>', null];
// $('<li>1</li><li>12</li>'); match = [null, '<li>1</li><li>12</li>', null];
// $('#div1') match = ['#div1', null, 'div1'];
// $('<li>hello') match = ['<li>hello', '<li>', null]
// 上面五种情况除了第一种,剩下都可以进入
if ( match