单行: white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 多行: word-break: break-all; text-overflow: ellipsis; overflow: hidden; display: -webki ...
分类:
Web程序 时间:
2020-07-15 22:46:33
阅读次数:
93
1.子页面调用父页面js函数, parent.父页面函数 即可。比如 父页面有函数function tishi(){alert "父页面提示";},子页面只需 parent.tishi();即可使用父页面函数tishi()。 2.父页面调用子页面js函数。需要使用 iframename.window ...
分类:
其他好文 时间:
2020-07-15 16:04:48
阅读次数:
67
经典dp问题 class Solution { public int maxValue(int[][] grid) { int m=grid.length,n=grid[0].length; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ if(i==0&&j ...
分类:
其他好文 时间:
2020-07-15 15:48:57
阅读次数:
52
一:web.xml加载过程: 1.启动WEB项目的时候,容器首先会去读取web.xml配置文件中的两个节点:<listener> </listener>和<context-param> </context-param>; 2.容器创建一个ServletContext(application),容器以 ...
分类:
Web程序 时间:
2020-07-15 13:04:47
阅读次数:
65
在类定义方法,方法的部分代码如下: //获取类所有成员列表 Field[] fields = this.getClass().getDeclaredFields(); for (int i = 0; i < fields.length; i++) { //获取变量名 String fieldname ...
分类:
其他好文 时间:
2020-07-15 13:03:02
阅读次数:
64
这个异常是索引长度超出限制 767个字节。 在测试环境部署flowable时,程序创建flowable表时,出现了【Specified key was too long; max key length is 767 bytes】异常。 这个异常在开发环境是没有的。 建表sql: CREATE TAB ...
分类:
其他好文 时间:
2020-07-15 13:02:49
阅读次数:
99
这道题怎么说呢,真的很卧槽。分分钟想把出题人打一顿,题目根本没说明白,字符串中会包含 '0' 。状态转移五分钟,边界处理两小时。 DP 解法: public final int numDecodings(String s) { if (s == null || s.length() == 0 || ...
分类:
其他好文 时间:
2020-07-15 01:26:31
阅读次数:
63
Oracle归档日志若不定期清理将占用很大存储空间,在Linux环境下我们可以用shell脚本实现清理(Window下用bat同理)。 1. 查看归档日志存放位置 用oracle用户登录 [oracle@localhost data]$ sqlplus sys/password as sysdba ...
分类:
数据库 时间:
2020-07-15 01:09:51
阅读次数:
117
apachectl是Apache HTTP服务器的前端程序,主要用途是帮助管理员控制服务器的后台守护进程 ...
分类:
Web程序 时间:
2020-07-15 01:03:23
阅读次数:
94
链接:https://leetcode-cn.com/problems/word-search/ 代码 class Solution { public: bool exist(vector<vector<char>>& board, string word) { for (int i = 0; i ...
分类:
其他好文 时间:
2020-07-14 21:55:49
阅读次数:
84