局部刷新akeLoader.min.js怎么用

JavaScript039

局部刷新akeLoader.min.js怎么用,第1张

$("#content_table").load(location.href+" #content_table")

复制代码

使用了这句话,对id为content_table的元素进行了局部刷新。content_table是个<table>表。

现在局部刷新的时候,加载不了jquery分页用的js,后面我就把jquery分页用的js丢到了<table>里面</table>,但这样连分页都不启作用。

怎么才能在用

$("#content_table").load(location.href+" #content_table")

复制代码

这句话对table局部刷新的时候,让他加载js呢?

是不是可以对

$("#content_table").load(location.href+" #content_table")

复制代码

句话改造,在刷新content_table元素的同时,也加载分页用的js?

下面这段是过jquery的分页用的js,其实可以忽略不看

var _gaq = _gaq || []

_gaq.push(['_setAccount', 'UA-28718218-1'])

_gaq.push(['_trackPageview'])

(function() {

var ga = document.createElement('script') ga.type = 'text/javascript' ga.async = true

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'

var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(ga, s)

})()

$(function(){

$("#holder").jPages({

containerID : "movies",

first: '首页',

last: '尾页',

previous : "上一页",

next : "下一页",

perPage : 13,

delay : 20 //延迟多少秒

})

})

.....

猜测一下你的意思...局部刷新.之后,要去执行另一个脚本..

刷新的局部里面你可以返回一个脚本的.

如.<div id='div1'></div>你刷新这个里面的之后.把那个返回值里加入脚本.

<script>dosometing..</script>... 放到这里.这个div里.