问题描述
|
在测试页上,我有这个
<script type=\"text/javascript\">
var arreglo = [];
function parse_envivo(data) {
if(data.length != 0) {
alert(data.fuente);
$.each(data,function(index,data) {
if (jQuery.inArray(data.id,arreglo) == -1) {
arreglo.push(data.id);
$(\"#envivo > tbody:last\").append(\"<tr><td>\" + data.titulo + \"</td><td>\" + data.link + \"</td><td>\" + data.fuente + \"</td></tr>\");
}
});
}
}
$(document).ready(function() {
var fecha = Math.round((new Date()).getTime() / 1000);
setInterval(function() {
$.ajax({
data: \"fecha=\"+fecha,type: \"GET\",dataType: \"json\",url: \"data.php\",success: function(data){
parse_envivo(data);
}
});
},5000);
});
</script>
html
<table cellspacing=\"0\" cellpadding=\"0\" id=\"envivo\">
<thead>
<tr>
<th>Usuario</th>
<th>Acción</th>
<th>Título</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
工作...但是当我试图将其移到我的网站(与其他jQuery功能)
嘿!这是一个jquery验证问题。升级到1.8后解决了:D
感谢alL!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)