摘要: 1.传递request进template2.使用request.get_full_path或者request.path即可参考http://stackoverflow.com/questions/2882490/get-the-current-url-within-a-django-template... 阅读全文
posted @ 2012-08-01 15:46 jianhong 阅读(666) 评论(0) 推荐(0)
摘要: 这段时间遇到一个问题:使用ajax生成一个列表,然后使用sorttable.js对这个列表进行排序。问题在于:生成的列表还没出现,排序已经开始了,结果没有找到列表报错。解决方法: function ifExist(table){ if(table.tBodies[0]==null) { ... 阅读全文
posted @ 2012-08-01 11:46 jianhong 阅读(7777) 评论(0) 推荐(0)