jQuery自带方法/函数来获取outerHTML

获取

$('#id').prop('outerHTML')


设置

$('#id').prop('outerHTML','<div>')


你可能感兴趣的:(jQuery自带方法/函数来获取outerHTML)