为什么是这样的
var html = document.getElementsByTagName('html')[0];
console.log(html.parentNode); //#document
console.log($('html').parentNode); //undefined
console.log($('html').parent()[0]); //#document
console.log(ajQuery.parent($('html'))); //null
var html = document.getElementsByTagName('html')[0];
console.log(html.parentNode); //#document
console.log($('html').parentNode); //undefined
console.log($('html').parent()[0]); //#document
console.log(ajQuery.parent($('html'))); //null
2018-10-16
举报