注册 登录
编程论坛 ASP技术论坛

文章标题动态js载入效果问题

yjiaz 发布于 2014-12-29 01:55, 1812 次点击
$(function() {      
    $('h3').click(function(e) {   
        e.preventDefault();   
        var htm = 'Loading',   
        i = 4,   
        t = $(this).html(htm).unbind('click'); (function ct() {   
            i < 0 ? (i = 4, t.html(htm), ct()) : (t[0].innerHTML += '.',   
i--, setTimeout(ct, 150))   
        })();   
        window.location = this.href
    })   
});  

以上是Js代码

 <h3 class="article-title"><a href="<?php $this->permalink(); ?>"><?php $this->title() ;?></a></h3>

以上是PHP中关于文章标题的代码

现在动态效果已经出来了,但连接跳转后就是/undefined,请问是哪里定义错了,另外window和document的区别是不是在框架网页中才能显示出来
按照道理应该定义$this->permalink,但是我不确定js里的this定义为什么东西了...

[ 本帖最后由 yjiaz 于 2014-12-29 02:15 编辑 ]
1 回复
#2
hu9jj2014-12-31 19:15
是HPH还是ASP?
1