2012年6月18日
摘要: 一种是在服务器端设置(用的是django):1-1.定义SerializePython code# webapp.json.serializerfrom django.core import serializersdef Serialize(queryset, root_name=None): if not root_name:root_name = queryset.model._meta.verbose_name_plural return '{"total":%s, "%s": %s}' % (queryset.count(), r 阅读全文
posted @ 2012-06-18 17:36 Julyvv 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 错误1:The following classes are not declared even if their files have been loaded: 'AM.view.server.ServerGrid'. Please check the source code of their corresponding files for possible typos: 'app/view/server/ServerGrid.js原因及解决方法:首先,检查一下Ext.define('AM.view.server.ServerGrid' ,...),看路 阅读全文
posted @ 2012-06-18 15:28 Julyvv 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: 在ExtJs例子里看到大量“var me = this”,上网找了下,在:http://www.sencha.com/forum/showthread.php?136318-Why-use-quot-var-me-this-quot 找到答案:Say you have a method in your object A which itself makes an ajax request which has a callback. In this callback you want to use a property "blob" of your original obje 阅读全文
posted @ 2012-06-18 10:42 Julyvv 阅读(752) 评论(0) 推荐(0) 编辑