我正在执行这个函数,我不知道我缺少什么但是当 HELLO 充满 HTML 时 var BYE 是空的,这怎么会发生?
$.get(path+'productor/masnotas.jsp', function(data){
var hello = data;
var bye = $(data).find("#columna1");
$("#columnauno").append($(data).find("#columna1"));
},'html');
有人可以帮助我吗?
编辑:对不起,我赶时间,这是数据内容的一部分,然后它带有更多的 HTML,并由 #columna1 之外的另一个名为 #columna2 的 div 组成。当我更新页面时,我想使用一个 HTML/JSP 选择并将每个内容放在网络的每一列中:
<html>
<!-- Primera Columna -->
<div class="span-12 first" id="columna1">
<br>
<div class="caja">
<b>Cambios en las denuncias por Self</b>
<p style="text-align: justify;">
Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit amet
<a href="${self.monitor.basePath}siniestro/ayudaDenuncia.jsp" target="_blank">Leer más</a>
</p>
</div>
<br>
<div class="caja">
<img border="0" align="left" src="${self.monitor.basePath}images/aapas.jpg"/>
<b>Lorem ipsum dolor sit amet</b>
<p style="text-align: justify;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis condimentum purus vel diam dictum non pharetra dolor vulputate. Aenean sed sapien leo, sed laoreet risus. Duis dictum volutpat imperdiet. Donec eros nibh, accumsan condimentum euismod laoreet, auctor vel lacus. Pellentesque felis tortor, laoreet eget varius eget, iaculis vitae turpis. Cras lobortis malesuada erat, nec sodales tellus porttitor eu. Vestibulum porttitor, neque vel aliquet porttitor, est tortor commodo magna, id faucibus orci massa at velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse arcu quam, volutpat ut ullamcorper in, laoreet eget diam. Pellentesque in massa nec massa dapibus vehicula. Sed nec lectus nisi, sed pharetra est. Ut leo metus, sagittis non blandit ac, adipiscing eu leo. <a href="#" target="_blank">ver nota completa</a>
</p>
</div>
<br>
path 是系统路径,basepath = ${self.monitor.basePath} *创建的 VARS 用于测试目的*