Imagine you have a special keyboard with the following keys: Key 1: (A): Prints one 'A' on screen. Key 2: (Ctrl-A): Select the whole screen. Key 3: (C ...
分类:
其他好文 时间:
2017-07-31 19:57:03
阅读次数:
167
Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You have to ...
分类:
其他好文 时间:
2017-07-30 12:53:36
阅读次数:
108
模态框为信息编辑窗口,涉及好多内容,填了半天,若一不小心点了空白处..... $('#myModal').modal({backdrop: 'static', keyboard: false}); backdrop:static时,空白处不关闭. keyboard:false时,esc键盘不关闭. ...
分类:
其他好文 时间:
2017-07-28 18:25:08
阅读次数:
122
Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp ...
分类:
其他好文 时间:
2017-07-27 22:38:51
阅读次数:
208
datepicker插件默认为英文,而且格式为:mm/dd/yyyy这种情况,看起来不怎么直观。 修改目标: 1、默认显示为中文 2、格式为:yyyy年mm月dd日 需要修改两个地方: 1、更改datas对象, 增加zh-cn语言选项;参见源代码的1419行 2、修改默认参数,即defaults对象 ...
分类:
其他好文 时间:
2017-07-27 20:07:34
阅读次数:
156
生命周期 onCreate():activity进行创建,在该方法中应调用setContentView(),findViewById()以及获取要展示的数据的方法(如调用managerQuery()去查询数据库中将要展示的数据)。 在该方法中可直接调用finish(),此时activity会马上运行 ...
分类:
其他好文 时间:
2017-07-27 11:31:48
阅读次数:
186
题目代号:UVA 11988 题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3139 You’re typing a long text wit ...
分类:
其他好文 时间:
2017-07-27 10:37:45
阅读次数:
180
题目链接: UVA...... 题目描述: 给出一个字符串, 其中遇到"["是光标到最前, 遇到']'时光标又回到最后, 输出最后的文本 解题思路: 用到STL, 设置变量flag维护光标的位置, 当遇到纯字母时, 组合起来当做字符串处理, 在遇到下一个非纯字母时, 根据flag的状态一起插进deq ...
分类:
其他好文 时间:
2017-07-26 21:46:41
阅读次数:
84
We are going to see how to using method arguments for @HostListener. First, we can use HostListener without method arguments: It works fine. But if we ...
分类:
其他好文 时间:
2017-07-23 22:44:01
阅读次数:
274