有些时候,你需要让你的应用在大部分的时候,仅仅支持当前域名下的请求。而仅仅在极其特殊的几个场合下,才支持跨源请求。这个时候,你需要把跨源请求仅仅缩小在几个Controller上,或者Controlle...
分类:
编程语言 时间:
2017-02-02 12:18:02
阅读次数:
797
Android Service 一是处理Intent请求,二是像COM组件一样提供接口访问功能。Context.startService和Service.onStart这样的命名设计真误导人。 ...
分类:
移动开发 时间:
2017-02-02 10:48:24
阅读次数:
181
<!DOCTYPE html> <head> <title>canvas倒计时</title> <style> .canvas{ display: block; border: 1px solid #000; margin: 50px auto; } </style> </head> <body> ...
分类:
其他好文 时间:
2017-02-01 23:53:22
阅读次数:
385
//调一调颜色和 box 的 Rotate,就会出现小星星! ...
[codeforces538E]Demiurges Play Again 试题描述 Demiurges Shambambukli and Mazukta love to watch the games of ordinary people. Today, they noticed two men w ...
分类:
其他好文 时间:
2017-01-31 19:21:53
阅读次数:
298
class Solution { public: int reverse(int x) { int res = 0; while (x != 0) { int t = res * 10 + x % 10; if (t / 10 != res) return 0; res = t; x /= 10; ...
分类:
其他好文 时间:
2017-01-31 00:30:19
阅读次数:
178
class Solution { public: string convert(string s, int nRows) { if (nRows <= 1) return s; string res = ""; int size = 2 * nRows - 2; for (int i = 0; i ...
分类:
其他好文 时间:
2017-01-29 20:40:13
阅读次数:
191
转载请注明出处:http://www.cnblogs.com/liangyongrui/p/6354552.html 异或的妙用。 一开始读题不仔细,以为有很多的孤立数字。 没想到就两个- - 然后参考了别人的思路。 具体见代码: ...
分类:
其他好文 时间:
2017-01-28 22:07:19
阅读次数:
226