上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

2019年4月29日

摘要: after:在选择的元素后面添加内容,不在选择的元素内 append:在选择的元素后面的里面添加内容 appendTo:将元素添加到选择的元素里面,而且添加的元素必须是jQuery对象 阅读全文
posted @ 2019-04-29 15:39 JieFangZhe 阅读(135) 评论(0) 推荐(0)
摘要: 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)
摘要: .all 获取所有的对象 .values 获取所有的字典 .value_list 获取所有的元组 阅读全文
posted @ 2019-04-29 13:45 JieFangZhe 阅读(259) 评论(0) 推荐(0)

2019年4月28日

摘要: # 模版 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)
摘要: Title 阅读全文
posted @ 2019-04-28 14:11 JieFangZhe 阅读(77) 评论(0) 推荐(0)
摘要: form的target属性设置为iframe的name值时,表示提交到url后返回的数据显示到iframe区域 阅读全文
posted @ 2019-04-28 13:24 JieFangZhe 阅读(287) 评论(0) 推荐(0)
摘要: 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日

摘要: 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)
摘要: function bindRemoveCls() { $('#removeCls').click(function () { var options = $('#sel')[0].selectedOptions; while(options.length>0){ ... 阅读全文
posted @ 2019-04-27 18:03 JieFangZhe 阅读(140) 评论(0) 推荐(0)
摘要: 假设页面上有这样一个简单的无序列表。 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 下一页

导航