一、$表示jquery对象 二、样本 1.ajax进行json交互 $.ajax({ url : path+"expressDic.do?parentId=" + parentId, type : ‘post‘, dataType : ‘json‘, timeout : 5000, error : function() { alert(‘加载数据异常,...
分类:
Web程序 时间:
2014-08-05 11:41:29
阅读次数:
226
题目:uva10401Injured Queen Problem(递推)
题目大意:依旧是在棋盘上放皇后的问题,这些皇后是受伤的皇后,攻击范围缩小了。攻击范围在图中用阴影表示(题目)。然后给出棋盘的现状,???3?4:在一个6*6的棋盘上,因为皇后是可以列向攻击的,所以一列只能放一个皇后,所以第一个?代表第一列的皇后放的行未知,这样3的意思就是第4列皇后在第三行,也就是确定了第4列皇...
分类:
其他好文 时间:
2014-08-05 11:23:10
阅读次数:
211
如何解决No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
错误信息
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386...
分类:
其他好文 时间:
2014-08-05 11:10:29
阅读次数:
212
The Flat Dictionary原来的代码没处理dict为空的情况 1 def flatten(dictionary): 2 #[] is a list 3 #() is a tuple 4 stack = [((), dictionary)] 5 6 res...
分类:
其他好文 时间:
2014-08-05 11:05:59
阅读次数:
204
有没有批量检测的方法?有的。我们用nc就可以快速检测端口的开放性。nc检测端口的用法nc -z -w 10 -u%IP% %PORT%-z表示检测或者扫描端口-w表示超时时间-u表示使用UDP协议,此参数为空,则为tcp协议例如:[@s136.ipcpu.com ~]# nc -z -w 10 -u...
分类:
系统相关 时间:
2014-08-05 11:04:49
阅读次数:
257
public abstract class CloseableHttpClient implements HttpClient, Closeable { private final Log log = LogFactory.getLog(getClass()); protected ab...
分类:
其他好文 时间:
2014-08-05 11:04:39
阅读次数:
471
1 /**2 * 3 */4 private boolean isHome() {5 ActivityManager mActivityManager = (ActivityManager) getSystemService(Context.ACTIVIT...
分类:
移动开发 时间:
2014-08-05 11:02:49
阅读次数:
246
How to find friends思路简单,编码不易 1 def check_connection(network, first, second): 2 link_dictionary = dict() 3 4 for link in network: 5 dr...
分类:
其他好文 时间:
2014-08-05 11:02:19
阅读次数:
245
function checkDate(obj){ var date=obj.value;var re = new RegExp("(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578...
分类:
编程语言 时间:
2014-08-05 10:59:19
阅读次数:
228
Pawn Brotherhood 1 alpha_table = "abcdefgh" 2 3 def safe_pawns(pawns): 4 safe_count = 0 5 6 for spawn in pawns: 7 if spawn[1] == '1'...
分类:
其他好文 时间:
2014-08-05 10:57:49
阅读次数:
278