- 博客(12)
- 资源 (1)
- 收藏
- 关注
转载 Bootstarp进度条
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link href=".
2021-04-26 17:24:21
177
原创 python登录拦截器
1.先在settings.py的MIDDLEWARE=[ ] 中添加'APP名称.middlewares.AuthMD', 2.在对应APP新建PY文件,命名为middlewares.py,文件内容为:from django.http import HttpResponseRedirectfrom django.utils.deprecation import MiddlewareMixin# 实现定义的有一个uauth(app) models.py 表格Usersfrom ws..
2021-04-26 16:24:12
695
原创 python登录时建立session信息
def login(request): print('开始登录验证!') if request.method=="POST": u=request.POST.get("username",None) s=request.POST.get("password",None) if u: print() else: return render(request,'login.html',.
2021-04-26 15:54:26
524
2
原创 python截取到字符串小数点后2位
def main(): a = '1.892323424' b = '2.01' a = float(a) b = float(b) z = a+b print (a) print (b) print (format(z,"0.2f"))if __name__ == '__main__': main()
2021-04-26 15:49:15
1590
原创 python py直接运行
def main(): print ('直接输出')if __name__ == '__main__': main()
2021-04-26 15:47:12
224
原创 SQL一对多查询
SELECT A.ID,A.NAME,A.DATE,wm_concat(B.NUM) as no1 FROM 表1 AINNER JOIN 表2 BON A.UUID=B.UUIDgroup by A.ID,A.NAME,A.DATE
2019-02-21 11:04:07
4181
原创 SQL拼接父级字符串
select group_uuid, LTRIM(sys_connect_by_path(group_name, '-->'), '-->') as group_name from ORG_GROUP2 GG where GG.LOGICDELETE = '0' start with GG.group_uuid = '-1' connect b...
2019-02-21 11:03:37
702
原创 多选框获取所选内容
页面<dl> <dd>下发省份:</dd> <dd style="width:320px;height:auto;" class="selectOption"> <label for=""> <input type="checkbox" c
2018-04-04 16:51:37
394
原创 不定条件的多条件查询
后台部分:1. 首先,在applicationContext.xml中进行配置: <!-- spring jdbc --> <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"> <property name="dataSour...
2018-04-04 15:29:01
2003
原创 ajax传递数组(前端+后台接收)
目的是将多选框中的值传递给后台html内容:<input type="checkbox" class="option" value="1"><input type="checkbox" class="option" value="2"><input type="checkbox" class=
2018-03-26 16:58:34
22955
2
原创 跳出iframe框架
跳出iframe的框架,跳转到新的页面我做的是web项目,用下面语句代替request和response来实现跳转:String str="<script>window.open('这里写要跳转的地址','_top');</script>";response.getWriter().write(str);...
2018-02-08 16:58:11
856
原创 JS获取页面数据
1.通过名字获取:document.getElementByName("name").value;2.通过id获取: document.getElementById("id").value;3.通过类获取:document.getElementsByClassName("class").value;4.获取文档中id=“querySelector”的值:document.querySelector...
2018-02-08 09:56:36
17147
Advanced-REST-client_v3.1.9+definitions.json
2019-03-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人