转自
:http://hi.baidu.com/taomin15201212/item/7b7d0f140d61af0f8ebde433网页可见区域宽:document.body.clientWidth;网页可见区域高:document.body.clientHeight;网页可见区域宽:docum...
分类:
Web程序 时间:
2014-05-08 17:50:42
阅读次数:
430
Consider a simple function that adds the first
N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python
implementation that uses recu...
分类:
其他好文 时间:
2014-05-08 17:35:09
阅读次数:
286
应用中的数据很少只是简单的key-value,常常他们是包含了日期,地理位置坐标,对象,数组等结构化的。想要把这些数据存储起来,如果使用行列式的关系型数据库,就好象把你制作好的结构化数据塞到一个excel表格中一样,这样做就得把你的数据重构造以符合数据表格的约束,当然从数据库中取出所需的数据还要反向...
分类:
其他好文 时间:
2014-05-08 15:34:46
阅读次数:
273
父窗口打开子窗口页面:var fatherWindow =
document.all.dealReason;//想传的值win = window.showModalDialog(strUrl, fatherWindow,
"dialogWidth=800px;dialogHeight=600px;"...
什么是跨域1、document.domain+iframe的设置2、动态创建script3、利用iframe和location.hash4、window.name实现的跨域数据传输5、使用HTML5
postMessage6、利用flash本文来自网络(http://f2e.me/200904/cr...
分类:
编程语言 时间:
2014-05-08 14:04:18
阅读次数:
517
1. What is the LDA?LDA(latent dilichlet allocation)
is a method to assign the topic (distribution) of a given document. However,
note that this model ...
分类:
其他好文 时间:
2014-05-08 13:16:49
阅读次数:
289
1 2 New Document 3 21 22 23 hello,world?!24 25
上面是自己写的一个,然后我从网上看到了一个写的不错的,可以看出是个对JavaScript了解的比较深入细致的一个人(http://www.cnblogs.com/kuikui/ar...
分类:
编程语言 时间:
2014-05-08 11:57:39
阅读次数:
442
OJ题目:click here~~
树上的01背包
const int maxn = 102;
int val[maxn];
int w[maxn];
vector g[maxn];
int dp[maxn][maxn];
int n , m ;
void dfs(int u , int father){
int v , i , j , k;
for(i = w[u];i...
分类:
其他好文 时间:
2014-05-08 05:09:28
阅读次数:
323
今日做项目,涉及到native和H5页面的交互
1.document.readyState
document.readyState:判断文档是否加载完成。firefox不支持。
这个属性是只读的,传回值有以下的可能:
0-UNINITIALIZED:XML 对象被产生,但没有任何文件被加载。
1-LOADING:加载程序进行中,但文件尚未开始解析。
2-LOADED:部分的文件已经加载...
分类:
Web程序 时间:
2014-05-08 00:36:34
阅读次数:
460
题目链接:click here~
此题我估计是加强过数据,在我纠结了很久的时候我交了好几份网上的代码不是WA就是TLE。在我很迷茫的时候我又交了一份,AC了(虽然我用随机数据找到了他代码一个不能过的数据)。
给了我信心,然后我拿他的代码用随机数跟我的代码进行测试,再用FC找不同。。发现了一个致命的错误,一般来说,BFS或者DFS都是需要有一个vis数组或者哈希来判重,但是此题判重是有很大问题的...
分类:
其他好文 时间:
2014-05-07 22:48:42
阅读次数:
400