JQuery对象转Dom , Jquery对象转html字符串,html字符串转Jquery对象

1,var $_div=$('
元素
');

console.log($_div.get(0)); // '

元素

2,

测试2



function clickTop(thiss){

console.log(thiss.outerHTML+".......");

var $_this=$(thiss);

console.log($_this.prop("outerHTML")+"....d...");

}

结果:

测试2.......

测试2....d...

 

你可能感兴趣的:(Jquery)