摘要: 第一种 字符串拼接 就不写了 下面的是 第二 第三 第四种 输入密码时,如果想要不可见,需要利用getpass 模块中的 getpass方法,即: 需要注意的是 pycharm 不支持 getpass 用命令行方式执行文件 可以测试getpass模块 阅读全文
posted @ 2019-04-25 11:51 Samuel-Leung 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 统计表数量 SELECT count(*) FROM sys.objects WHERE type='U' 列出表名称 SELECT NAME FROM sys.objects WHERE type='U' 或者 列出表名称 SELECT Name FROM SysObjects Where XTy 阅读全文
posted @ 2019-04-15 12:09 Samuel-Leung 阅读(3264) 评论(0) 推荐(0) 编辑
摘要: 第一种 public void selectBykeyWord(String keyword) { String id = "%" + keyword + "%"; String roleType = "%" + keyword + "%"; String roleName = "%" + keyw 阅读全文
posted @ 2019-04-12 12:25 Samuel-Leung 阅读(10689) 评论(0) 推荐(0) 编辑
摘要: if (event.keyCode == 13) { submitFuc(); } }); 阅读全文
posted @ 2019-04-12 11:58 Samuel-Leung 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 事件驱动: 我们点击按钮 按钮去掉用相应的方法。 demo: <input type="button" value="点击" onclick="func()"> function func(){ alert(1); } 事件: onclick 点击 onblur:失去焦点 onfocus 得到焦点 阅读全文
posted @ 2019-04-12 10:06 Samuel-Leung 阅读(32009) 评论(0) 推荐(1) 编辑
摘要: 第一种方式是 通过session 第二种如下: 如何将controller层值传递到JSP页面 @RequestMapping(value="/result",method=RequestMethod.GET) public String test2(HttpServletRequest reque 阅读全文
posted @ 2019-04-11 17:37 Samuel-Leung 阅读(4710) 评论(0) 推荐(0) 编辑
摘要: 一、三种情况如下 HttpSession session = request.getSession(); HttpSession session = request.getSession(true); HttpSession session = request.getSession(false); 阅读全文
posted @ 2019-04-11 17:26 Samuel-Leung 阅读(2131) 评论(0) 推荐(0) 编辑
摘要: 1 $(function () { }); 2 $(document).ready(function () { }); 3 window.onload = function () { } 阅读全文
posted @ 2019-04-09 14:41 Samuel-Leung 阅读(3964) 评论(0) 推荐(0) 编辑
摘要: update 更新表 set 字段 = (select 参考数据 from 参考表 where 参考表.id = 更新表.id); update table_2 m set m.column = (select column from table_1 mp where mp.id= m.id); 例 阅读全文
posted @ 2019-03-18 11:19 Samuel-Leung 阅读(2410) 评论(0) 推荐(0) 编辑
摘要: 1、安装 rpm -i 需要安装的包文件名 举例如下: rpm -i example.rpm 安装 example.rpm 包; rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息; rpm -ivh example.rpm 安装 examp 阅读全文
posted @ 2019-03-13 11:22 Samuel-Leung 阅读(1017) 评论(0) 推荐(0) 编辑