以文件的形式传参/** * 通过拼接的方式构造请求内容,实现参数传输以及文件传输 * * @param actionUrl 访问的服务器URL * @param params 普通参数 * @param files 文件参数 * @return * @throws IOException */ p....
分类:
Web程序 时间:
2014-10-17 11:43:02
阅读次数:
236
简单数组:ss["aa","vv","se","re"];ss=ss.sort();var rdata = Reports.sort(function (a, b) { if (a.bbCode > b.bbCode) { return 1; } else { return -1; } });//R...
分类:
编程语言 时间:
2014-10-17 11:32:26
阅读次数:
138
例程:#include void up_and_down(int);int main(void){ up_and_down(1); return 0;}void up_and_down(int n){ printf("level %d: n location %p\n", n, &...
分类:
其他好文 时间:
2014-10-17 11:00:04
阅读次数:
119
LeetCode:SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution...
分类:
其他好文 时间:
2014-10-17 10:27:24
阅读次数:
293
window.onload = function() { alert('你好,欢迎光临');//各浏览器均正常弹出}window.onbeforeunload = function() { alert('谢谢光临'); //IE 火狐浏览器提示 return ('谢谢光临');//IE 谷歌浏...
分类:
Web程序 时间:
2014-10-17 10:10:51
阅读次数:
1386
1、使文本框内不能粘贴字符给Textbox加入onpaste="return false" 属性2、只是不能输入空格:3、不能输入空格及英文状态下的逗号:
分类:
Web程序 时间:
2014-10-17 10:09:05
阅读次数:
168
一.函数:1.线程属性的初始化与销毁:#include int pthread_attr_init(pthread_attr_t *attr);int pthread_attr_destroy(pthread_attr_t *attr);Both return: 0 if OK, error nu....
分类:
编程语言 时间:
2014-10-17 01:36:43
阅读次数:
212
1、注意空字符串的处理;2、注意是alphanumeric字符;3、字符串添加字符直接用+就可以; 1 class Solution: 2 # @param s, a string 3 # @return a boolean 4 def isPalindrome(self, ...
分类:
其他好文 时间:
2014-10-17 01:34:53
阅读次数:
216
#include #define kCount 10int main(){ int array[kCount] = {92, 77, 67, 8, 6, 84, 55, 85, 43, 67}; for (int i = 1; i<kCount; i++) { int temp = ...
分类:
编程语言 时间:
2014-10-17 01:25:43
阅读次数:
336
并查集#include#includeusing namespace std;#define MAXN 100005int p[MAXN],N;int Find(int x) {return x == p[x] ? x : p[x] = Find(p[x]);}int main(){ //fr...
分类:
其他好文 时间:
2014-10-17 00:20:03
阅读次数:
301