function getTitleOfUrl(u, callback) {
var url = \\\"jsapi/proxy.jsp?\\\" + u;
$.ajax({
url: url,
complete: function (e) {
var text = e.responseText;
text = text.replace(/\\\\s*/g,\\\"\\\");
var reg = /<title>(.*)\\\\<\\\\/title>/;
window.b = e;
title = text.match(reg)[1];
callback&&callback(title,e)
}
})
}
var u = \\\"http://leechg.com\\\";
getTitleOfUrl(u, function(title,e){
console.log(title)
})