if (i < 10) {
//链接地址
var location = $(this).find(“loc”).text();
//显示文字
var text = $(this).find(“loc”).text();
//动态加载方法:链接地址
$(“<a>”).attr(“href”, location)
//显示文字
.text(text)
//设置样式
.css({ “width”: “700px”, “float”: “left”, “margin-bottom”: “5px” })
//加载到div
.appendTo(“#showresult”);
}
})










