문제

I haven't been able to find a Zepto equivalent for outerHTML so I wrote my own function.

Is there a better way? My function is working for me but if there is a "right" way to do this, I would prefer that.

function outerHTML(node){
return node.outerHTML || (function(n){
var nodeClone = $(node).clone(),
    html          = nodeClone[0],
    placeholder   = nodeClone.prev();

return $(node)})(node)
}

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top