var test ={
url: '/reg/',
cache: false,
success: function(data) {
var div = document.createElement('div');
div.innerHTML = data;
var elem = div.querySelector('#red');
alert(elem.innerHTML)
}
};
var data = "<div><b></b></div><span id='red'>12345</span>"
test.success(data)