JSTL 核心标签库标签共有13个,功能上分为4类: 1.表达式控制标签:out、set、remove、catch 2.流程控制标签:if、choose、when、otherwise 3.循环标签:forEach、forTokens 4.URL操作标签:import、url、redirec...
分类:
Web程序 时间:
2014-10-14 20:55:29
阅读次数:
318
SummaryThis article discusses some best practices to follow for writing efficient, understandable JavaScript.IntroductionWriting a best practice artic...
分类:
编程语言 时间:
2014-10-14 19:26:38
阅读次数:
328
用户退出应用前给出一个提示是很有必要的,因为可能是用户并不真的想退出,而只是一不小心按下了返回键,大部分应用的做法是在应用退出去前给出一个Dialog,我觉得这样不太友好,用户还得移动手指去按dialog中的按钮。个人觉得“再按一次返回键退出程序”是best practice,实现也很简单,直接上代...
分类:
其他好文 时间:
2014-10-13 00:02:58
阅读次数:
257
问题: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co...
分类:
其他好文 时间:
2014-10-12 00:58:36
阅读次数:
686
有一组数组代表股票的价格一次买一次卖如何得到最大利润? 1 public int maxProfit(int[] prices) { 2 if(prices.length==0)return 0; 3 int maxProfit=0; 4 in...
分类:
编程语言 时间:
2014-10-11 22:08:36
阅读次数:
174
1) Best Cross Platform IDE -
Brackets
Brackets是一个在前端Web开发和设计人员中最流行的开放源码IDE/代码编辑器之一。它拥有一些实用工具能够将HTML 和CSS推送至浏览,而不需要保存或重新加载页面。这是一个强大的工具,你将会爱上在Bracket中编写代码。
2) Best Cross Platform IDE -
Light Tab...
分类:
Web程序 时间:
2014-10-11 08:25:45
阅读次数:
281
用户退出应用前给出一个提示是很有必要的,因为可能是用户并不真的想退出,而只是一不小心按下了返回键,大部分应用的做法是在应用退出去前给出一个Dialog,我觉得这样不太友好,用户还得移动手指去按dialog中的按钮。个人觉得“再按一次返回键退出程序”是best practice,实现也很简单,直接上代...
分类:
移动开发 时间:
2014-10-11 01:47:44
阅读次数:
241
大道至简Any intelligent fool can make things bigger and more complex. It takes a touch of genius – and a lot of courage – to move in the opposite directio...
分类:
其他好文 时间:
2014-10-10 21:34:04
阅读次数:
174
一:魔棒工具
这是建立选区最简单的方法,但只有在背景色为纯色时才会比较有效。
因此,当要选择的对象的背景为空白背景时,可使用魔棒工具,例如一张产品拍摄图。
在建立选区时,首先,要确保图片在一个图层中,只需右键单击背景图层,选择and choose ‘Layer from Background’。然后,选择魔棒工具单击背景即可。
这样,背景将会被选中,可以删除...
分类:
其他好文 时间:
2014-10-10 17:45:23
阅读次数:
254
#include#include#include#include#define MAX 102void read();using namespace std;int map[MAX][MAX],best[MAX],n;bool visit[MAX];int main(){ //freopen(...
分类:
其他好文 时间:
2014-10-10 12:47:34
阅读次数:
172