在进行表单提交时,会遇到在提交前增加额外参数的情况,对此有如下几种解决方法:1.
在表单里使用hidden的input,将参数放到里面。缺点:在form表单里会增加一些input节点,感觉不爽。2.
在提交前使用javascript动态在表单里添加input。缺点:需要写脚本。3. 使用ajax提交...
分类:
其他好文 时间:
2014-04-30 21:34:48
阅读次数:
458
使用google官方的SwipeRefreshLayout参考:http://blog.csdn.net/easyer2012/article/details/22857807http://stormzhang.github.io/android/2014/03/29/android-swipere...
分类:
移动开发 时间:
2014-04-30 21:33:22
阅读次数:
634
http://acm.nyist.net/JudgeOnline/problem.php?pid=708状态转移方程的思路:对于一个数N,可以是N
- 1的状态+1 得到,另外,也可以是(n / 2) * (1 + 1)得到,同理对于任意的奇数p,都有如果n可以整除p,都有f(n / p) + f(...
分类:
其他好文 时间:
2014-04-30 21:26:26
阅读次数:
519
例如下面一段代码 var a = { x: 1, y: 2,};alert(a.x);
如果在IE的兼容性视图(IE7文档模式)下,会报告下面的错误:SCRIPT1028: 缺少标识符、字符串或数字
旧版IE中,json最后一项是不允许有逗号的,为了更好的兼容各个浏览器,json最后的逗号最好不加!...
分类:
其他好文 时间:
2014-04-30 20:48:24
阅读次数:
445
This is a two player game. Initially there
areninteger numbers in an array and playersAandBget chance to take them
alternatively. Each player can take...
分类:
其他好文 时间:
2014-04-30 20:34:38
阅读次数:
519
首先写个php脚本输出json,注意,还要输出回车,方便android的bufferreader读取一行bookid
= $id; $this->bookname = $name; $this->bookinfo = $info; } ...
分类:
移动开发 时间:
2014-04-30 20:19:42
阅读次数:
684
昨天说了下用 htmlfile 来解析 html,今天依然用他来解析,htmlfile 是一个
COM 版的 BOM 和 DOM,所以解析 html, 执行 js 完全不在话下,今天就继续解析 json 和 jsonp 吧。我收集了三种常见 json
jsonp 的格式,因为很多人找我说如何用正则提...
分类:
Web程序 时间:
2014-04-30 20:03:20
阅读次数:
727
我们在做开发的时候,很多时候需要和Json数据格式打交道,如Web开发里面,很多时候,数据通过Json进行传递到页面上,然后在进行处理的。而使用Json的时候,我们很多时候会涉及到几个序列化对象的使用:DataContractJsonSerializer,JavaScriptSerializer
和...
分类:
Web程序 时间:
2014-04-30 19:33:24
阅读次数:
657