my iphone can’t use jquery , so i have to simulate $ function by myself:
this is my code :
function $(str){
var div=document.createElement('div')
div.innerHTML=str;
return div
}
and you can see , the result has a Redundant parent div,
so how to clear the raw div ,
thanks
I’d think you could instead return
div.childNodes[0].