函数的定义为: def function_name (parameter_list) : return_type = { function_body } 其中,return_type可以省略,使用推断类型,但是recursive method(递归函数)就必须带return_type;函数使用ret ...
分类:
其他好文 时间:
2020-06-19 11:48:05
阅读次数:
43
window.open打开网址被拦截 标签: js 坑位 通过window.open打开一个网址,在火狐和IE系列浏览器下会拦截掉,除非用户主动点击允许才会成功,这样用户体验基本是恶心到产品的,而产品又不希望通过location.href来解决。 Why 应该是浏览器的安全案例策略有关,当浏览器检测 ...
一、location 对象 location 主要用于获取与跳转链接(href)、获取地址返回的参数(search)等 提供了与当前窗口中加载的文档有关的信息,还提供了一些导航功能。location是一个很特别的对象, 因为它既是window对象的属性,也是document对象的属性,而且还可以单独 ...
分类:
其他好文 时间:
2020-06-18 21:21:30
阅读次数:
80
Jedis Jedis是Redis官方推荐的java连接开发工具!使用Java操作Redis的中间件! 导入Maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0 ...
分类:
其他好文 时间:
2020-06-18 16:28:38
阅读次数:
61
刚开始下载完mysql后,登录mysql客户端,执行下面命令 变量默认的编码都是utf8: 现在我告诉你,你发的语句若包含中文字符会出现乱码,客户端和服务器使用的编码不一致! 下面的来介绍两个比较重要的变量 》 》 现在我们希望把这俩个变量的编码都改成gbk,且要一劳永逸,在my.ini配置文件添加 ...
分类:
数据库 时间:
2020-06-18 13:14:47
阅读次数:
72
本教程源码请访问:tutorial_demo 一、环境搭建 1.1、创建工程 在idea中从原型创建Maven工程,选择org.apache.maven.archetypes:maven-archetype-webapp,在pom.xml中添加如下的坐标: <dependency> <groupId ...
分类:
编程语言 时间:
2020-06-18 12:38:16
阅读次数:
44
SpringMVC是Spring的一个模块。MVC=Model+View+Controller,用于与前端交互,处理前端请求。 1.eclipse创建项目 File->New->Dynamic Web Project->输入名称->next->next->勾选Generate web.xml dep ...
分类:
编程语言 时间:
2020-06-17 23:05:29
阅读次数:
60
1072 Gas Station (30分) A gas station has to be built at such a location that the minimum distance between the station and any of the residential housi ...
分类:
其他好文 时间:
2020-06-17 18:32:50
阅读次数:
58
// 全局通用日志工具 function setlog($param = [],$result = [],$name='',$filename = '',$path = ''){ if (!$path) { $path = BASE_PATH.'../../logs/'; } if (!$filen ...
分类:
Web程序 时间:
2020-06-17 12:58:54
阅读次数:
82
如果想从头学起Cypress,可以看下面的系列文章哦 https://www.cnblogs.com/poloyy/category/1768839.html 作用 获取页面当前的 url 的哈希值 等价于 cy.location('hash') 语法格式 cy.hash() cy.hash(opt ...
分类:
其他好文 时间:
2020-06-17 11:03:31
阅读次数:
52