会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
上一页
1
···
6
7
8
9
10
11
12
13
14
···
17
下一页
2019年4月29日
jquery中 after append appendTo 的区别
摘要: after:在选择的元素后面添加内容,不在选择的元素内 append:在选择的元素后面的里面添加内容 appendTo:将元素添加到选择的元素里面,而且添加的元素必须是jQuery对象
阅读全文
posted @ 2019-04-29 15:39 JieFangZhe
阅读(135)
评论(0)
推荐(0)
Python json.dumps 自定义序列化操作
摘要: def login_ajax(request): if request.method == "GET": return render(request, 'login_ajax.html') elif request.method == "POST": ret = {'status': True, 'error':None, 'data': None...
阅读全文
posted @ 2019-04-29 15:29 JieFangZhe
阅读(257)
评论(0)
推荐(0)
django .all .values .value_list 数据库获取数据
摘要: .all 获取所有的对象 .values 获取所有的字典 .value_list 获取所有的元组
阅读全文
posted @ 2019-04-29 13:45 JieFangZhe
阅读(259)
评论(0)
推荐(0)
2019年4月28日
Django form验证
摘要: # 模版 class LoginForm(forms.Form): # 模版中的元素 user = forms.CharField(min_length=6,error_messages={"required": '用户名不能为空','min_length': '用户名长度不能小6'}) email = forms.EmailField(error_messages={"...
阅读全文
posted @ 2019-04-28 19:26 JieFangZhe
阅读(116)
评论(0)
推荐(0)
JSONP实现
摘要: Title
阅读全文
posted @ 2019-04-28 14:11 JieFangZhe
阅读(77)
评论(0)
推荐(0)
iframe和form表单实现ajax请求上传数据
摘要: form的target属性设置为iframe的name值时,表示提交到url后返回的数据显示到iframe区域
阅读全文
posted @ 2019-04-28 13:24 JieFangZhe
阅读(287)
评论(0)
推荐(0)
ajax上传图片
摘要: import os def upload(request): if request.method == 'GET': img_list = models.Img.objects.all() return render(request,'upload.html',{'img_list': img_list}) elif request.met...
阅读全文
posted @ 2019-04-28 12:00 JieFangZhe
阅读(95)
评论(0)
推荐(0)
2019年4月27日
form表单上传图片文件
摘要: import os def upload(request): if request.method == 'GET': img_list = models.Img.objects.all() return render(request, 'upload.html', {'img_list':img_list}) elif request.meth...
阅读全文
posted @ 2019-04-27 19:34 JieFangZhe
阅读(569)
评论(0)
推荐(0)
django添加控件
摘要: function bindRemoveCls() { $('#removeCls').click(function () { var options = $('#sel')[0].selectedOptions; while(options.length>0){ ...
阅读全文
posted @ 2019-04-27 18:03 JieFangZhe
阅读(140)
评论(0)
推荐(0)
each遍历
摘要: 假设页面上有这样一个简单的无序列表。 1 2 3 4 <ul> <li>foo</li> <li>bar</li> </ul> 1 2 3 4 <ul> <ul> <li>foo</li> <li>foo</li> <li>bar</li> <li>bar</li> </ul> </ul> 你可以选
阅读全文
posted @ 2019-04-27 17:25 JieFangZhe
阅读(82)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
17
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告