一、什么是广播 BroadcastReceiver是android 系统的四大组件之一,本质上就是一个全局的监听器,用于监听系统全局的广播消息,可以方便的实现系统中不同组件之间的通信。 程序可以通过调用context的sendBroadcast()方法来启动指定的BroadcastReceiver. ...
分类:
移动开发 时间:
2020-05-23 11:16:52
阅读次数:
72
table:vartableIns=table.render({elem:‘#workTaskLogListTable‘,url:ctx+‘/task/workTaskLog/query‘,error:admin.error,cellMinWidth:80,toolbar:‘#workTaskLogListTable-toolbar‘,defaultToolbar:[{title:‘条件过滤‘//
分类:
其他好文 时间:
2020-05-23 09:32:01
阅读次数:
290
链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 代码: class Solution { public: int findLengthOfLCIS(vector<int>& nums) { ...
分类:
其他好文 时间:
2020-05-23 00:13:44
阅读次数:
45
链接:https://leetcode-cn.com/problems/longest-consecutive-sequence/ 代码: class Solution { public: int longestConsecutive(vector<int>& nums) { int n = num ...
分类:
其他好文 时间:
2020-05-23 00:10:02
阅读次数:
46
<!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <style> #container { width: 460px; height: 200px; margin: 50px auto; border: 1px ...
分类:
Web程序 时间:
2020-05-23 00:09:16
阅读次数:
54
创建父工程,添加依赖: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> ...
分类:
其他好文 时间:
2020-05-22 21:10:26
阅读次数:
110
layui按下Escape退出弹出层layer在common.js,即顶层页面中监听事件:window.onkeyup=function(ev){varkey=ev.keyCode||ev.which;if(key==27){//按下Escapelayer.closeAll();//疯狂模式,关闭所有层if(parent){parent.layer.closeAll();}//layer.clos
分类:
其他好文 时间:
2020-05-21 18:56:16
阅读次数:
63
题目链接: https://leetcode-cn.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/ 一开始不会做,看了题解并和朋友讨论过后,终于弄懂官方解答为什么那么写了! 先贴一下官方解答的代码: ...
分类:
其他好文 时间:
2020-05-20 23:59:46
阅读次数:
117
?@ "TOC" 1.常见表单验证注解 | 限制 | 说明 | | | | | @Null | 限制只能为null | | @NotNull | 限制必须不为null | | @AssertTrue | 限制必须为true | | @DecimalMax(value) | 限制必须为一个不大于指定值 ...
分类:
编程语言 时间:
2020-05-20 12:37:21
阅读次数:
59
QMessageBox 功能:一种弹出式的对话框,用于显示消息,或是允许用户进行点击选中 接口: 方法 描述 information(parent, title, text, buttons, defaultButton) 弹出信息对话框 parent:指定父窗口 title:对话框标题 text: ...
分类:
其他好文 时间:
2020-05-19 22:35:22
阅读次数:
52